pyqt connect

C++
button.clicked.connect(slot_function)

Source

Also in C++: