Home > other >  How Pyqt5 button under the other class of function called??
How Pyqt5 button under the other class of function called??

Time:02-09

The class Ui_MainWindow (object)...
Def change (self, name) :
If name=="111" :
Print (111)
If name=="222" :
Print (222)


The class First (QWidget, Ui_First)...
The self, super (First) __init__ ()
Self. SetupUi (self)
self. The BTN. Clicked. Connect (Ui_MainWindow. Change (' 222 ')) I want to pass a parameter to 222 class change ()


Should excuse me I want to do??
  • Related