python pyqt5 button.clicked.connection code example Example: pyqt button clicked connect button.clicked.connect(lambda:self.myMethod())