button click pyqt5 code example
Example 1: pyqt5 pushbutton
button = QPushButton('PyQt5 button', self)
button.setToolTip('This is an example button')
button.move(100,70)
Example 2: pyqt button clicked connect
button.clicked.connect(lambda:self.myMethod())
Example 3: pyqt5 buttons
b1 = QtWidgets.QPushButton(win)
b1.setText("click me")
#b1.move(100,100) to move the button