title: Cannot find reference 'connect' in 'function'
body: <p>I'm following Tech With Tim's tutorial on PyQt5
  <a href="https://www.youtube.com/watch?v=-2uyzAqefyE&amp;list=PLzMcBGfZo4-lB8MZfHPLTEHO9zJDDLpYj&amp;index=2" rel="nofollow noreferrer">Video Link</a></p>
  <p>I'm using PyCharm for this. Here's My Current Code</p>
  <pre><code>from PyQt5 import QtWidgets
  from PyQt5.QtWidgets import QApplication, QMainWindow
  import sys
  
  
  class MyWindow(QMainWindow):
      def __init__(self):
          super(MyWindow, self).__init__()
  
          self.setGeometry(200, 200, 500, 500)
          self.setWindowTitle(&quot;Data&quot;)
          self.initUI()
  
      def initUI(self):
          self.label1 = QtWidgets.QLabel(self)
          self.label1.setText(&quot;Hello World&quot;)
          self.label1.move(225, 250)
  
          self.button1 =QtWidgets.QPushButton(self)
          self.button1.setText(&quot;Click Me&quot;)
          self.button1.move(200, 200)
          self.button1.clicked.connect(self.pressed())
  
      def pressed(self):
          self.label1.setText(&quot;You Clicked&quot;)
  
  
  def window():
      app = QApplication(sys.argv)
      win = MyWindow()
      win.show()
      sys.exit(app.exec_())
  
  
  window()
  </code></pre>
  <p>I get a problem that says &quot;Cannot find reference 'connect' in 'function' &quot;
  Of course I first tried searching google but they revolve around PyQt4 which I assumed won't answer my problem.</p>