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