Home > other >  PYQT5 problem
PYQT5 problem

Time:10-01

Could you tell me why I this TAB control didn't show up

CodePudding user response:

Don't know why didn't images displayed directly on the code

The class TAB () :
Def __init__ (self, Qt_win, name=[], win_=[], y=,0,100,100 [0]) :
The self. The TAB=QtWidgets. QTabWidget (Qt_win)

Self. TAB. SetTabsClosable (True)
Print (len (name), len (win_), x, y)
If len (name) & gt; 1 and len (name)==len (win_) :
Print (111, win_ [0])
For I in range (len (name)) :
Self. TAB. AddTab (win_ [I], the name [I])
Self. TAB. The resize (x, y [2], the xy [3])
Qt_win. The show ()
pass

CodePudding user response:

Your main method
  • Related