title: AttributeError: 'builtin_function_or_method' object has no attribute 'connect'
body: <p>I am using PyQt based on PyQt4. I am using PyCharm 2017.3. My python version is 3.4. <br>
  I am trying to connect the signal that we get when we click mouse to capture content from a QLineEdit.</p>
  
  <pre><code>class HelloWorld(QMainWindow, tD_ui.Ui_MainWindow):
  
      # defining constructor
      def __init__(self):
  
          QMainWindow.__init__(self)
  
          self.setupUi(self)
          self.getContent()
          self.putValues()
          self.setWindowTitle("Downloader")
          self.pushButton.mousePressEvent.connect(self.getContent)
  </code></pre>
  
  <p><br>
  So when I run the code.The following error shows up</p>
  
  <pre><code>Traceback (most recent call last):
    File "C:/Project/Downloader/Implement.py", line 113, in &lt;module&gt;
      helloworld = HelloWorld()
    File "C:/Project/Downloader/Implement.py", line 18, in __init__
      self.pushButton.mousePressEvent.connect(self.getContent)
  AttributeError: 'builtin_function_or_method' object has no attribute 'connect' 
  </code></pre>
  
  <p>P.S-> Please try to avoid legacy codes in solution</p>