pyqt4 slot / signal mechanism --- point button to achieve a function

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 Insert picture description here
and then click clicked () in the left window, click Edit in the right window to create your own function , The following window appears. Insert picture description here
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.

Published 36 original articles · won praise 1 · views 6384

Guess you like

Origin blog.csdn.net/qq_34291583/article/details/90646571