1: Drag in a Push Button
2: Click "Edit Signal / Slot" in the toolbar, then click the button to drag, the following window pops up
and then click clicked () in the left window, click Edit in the right window to create your own function , The following window appears.
Click the + sign below the slot to name and save your function, and then convert the ui file to a py file and call it.
pyqt4 slot / signal mechanism --- point button to achieve a function
Guess you like
Origin blog.csdn.net/qq_34291583/article/details/90646571
Recommended
Ranking