title: PyQt5: clicked.connect not working with no errors
body: <p>Put simply my binding of signals to slots does not seem to be working, and I'm not getting any errors. Printing a message doesn't work in the function either. </p>
  
  <pre><code># -*- coding: utf-8 -*-
  
  from PyQt5 import QtCore, QtGui, uic
  from PyQt5.QtWidgets import *
  from PyQt5.QtGui import (QBrush, QColor, QFont, QLinearGradient, QPainter, QPainterPath, QPalette, QPen)
  from APM_ui import Ui_Window
  import random, sys
  
  print('... APM Loading ...')
  
  uppercase = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z']
  lowercase = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z']
  PasswordFont = QFont('Lato', 11, QFont.Bold, True)
  
  class Window(Ui_Window):
      def __init__(self, parent = None, name = None, fl = 0):
          Ui_Window.__init__(self, parent, name, fl)
  
  
          def createDefaultClicked(self):
              default = []
              _translate = QtCore.QCoreApplication.translate
              done = 0
              while True:
                  if done!= 12:
                      random.shuffle(lowercase)
                      random.shuffle(uppercase)
                      decision = random.randint(0, 2)
                      if decision == 0:
                          default.append(random.randint(0, 9))
                          done += 1
                          continue
                      if decision == 1:
                          default.append(lowercase[0])
                          done += 1
                          continue
                      if decision == 2:
                          default.append(uppercase[0])
                          done += 1
                          continue
                  if done == 12:
                      break
              self.defaultPWDisp.setFont(PasswordFont)
              defaultPassword = '{}{}{}{}{}{}'.format(*default)
              self.defaultPWDisp.setText(_translate('Window', '&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p align=\'center\'&gt;%s is your new password!&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;' % defaultPassword))
  
  
          def createSmallClicked(self):
              small = []
              _translate = QtCore.QCoreApplication.translate
              done = 0
              while True:
                  if done!= 6:
                      random.shuffle(lowercase)
                      random.shuffle(uppercase)
                      decision = random.randint(0, 2)
                      if decision == 0:
                          small.append(random.randint(0, 9))
                          done += 1
                          continue
                      if decision == 1:
                          small.append(lowercase[0])
                          done += 1
                          continue
                      if decision == 2:
                          small.append(uppercase[0])
                          done += 1
                          continue
                  if done == 6:
                      break
              self.smallPWDisp.setFont(PasswordFont)
              smallPassword = '{}{}{}{}{}{}'.format(*small)
              self.smallPWDisp.setText(_translate('Window', '&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p align=\'center\'&gt;%s is your new password!&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;' % smallPassword))
  
          def createTinyClicked(self):
              tiny = []
              _translate = QtCore.QCoreApplication.translate
              done = 0
              while True:
                  if done!= 6:
                      random.shuffle(lowercase)
                      random.shuffle(uppercase)
                      decision = random.randint(0, 2)
                      if decision == 0:
                          tiny.append(random.randint(0, 9))
                          done += 1
                          continue
                      if decision == 1:
                          tiny.append(lowercase[0])
                          done += 1
                          continue
                      if decision == 2:
                          tiny.append(uppercase[0])
                          done += 1
                          continue
                  if done == 6:
                      break
              self.tinyPWDisp.setFont(PasswordFont)
              tinyPassword = '{}{}{}{}{}{}'.format(*tiny)
              self.tinyPWDisp.setText(_translate('Window', '&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p align=\'center\'&gt;%s is your new password!&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;' % tinyPassword))
  
          def createMidgetClicked(self):
              defaultPassword = []
              done = 0
              while True:
                  if done!= 4:
                      random.shuffle(lowercase)
                      random.shuffle(uppercase)
                      decision = random.randint(0, 2)
                      if decision == 0:
                          defaultPassword.append(random.randint(0, 9))
                          done += 1
                          continue
                      if decision == 1:
                          defaultPassword.append(lowercase[0])
                          done += 1
                          continue
                      if decision == 2:
                          defaultPassword.append(uppercase[0])
                          done += 1
                          continue
                  if done == 4:
                      break
              self.midgetPWDisp.setFont(PasswordFont)
              midgetPassword = '{}{}{}{}{}{}'.format(*midget)
              self.midgetPWDisp.setText(_translate('Window', '&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p align=\'center\'&gt;%s is your new password!&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;' % midgetPassword))
  
  # Look here! :P
      self.createDefault.clicked.connect(self.createDefaultClicked)   
      self.createSmall.clicked.connect(self.createSmallClicked)
      self.createTiny.clicked.connect(self.createTinyClicked)
      self.createMidget.clicked.connect(self.createMidgetClicked)
  
  if __name__ == '__main__':
      app = QApplication(sys.argv)
      window = QMainWindow()
      ui = Ui_Window()
      ui.setupUi(window)
      window.show()
      sys.exit(app.exec_())
  </code></pre>