2021
04-07
04-07
PyQT5实现选项卡窗口、堆栈窗口、停靠窗口、子窗口
一、选项卡控件QTabWidgetimportsys#使用调色板等fromPyQt5.QtGuiimportQIcon#导入QT,其中包含一些常量,例如颜色等#导入常用组件fromPyQt5.QtWidgetsimportQApplication,QMainWindow,QWidget,QTabWidgetfromPyQt5.QtWidgetsimportQFormLayout,QLineEdit,QLabelfromPyQt5.QtGuiimportQMovie,QPixmapclassDemoWin(QMainWindow):def__init__(self):super(DemoWin,self).__init__()self.initUI()defini...
继续阅读 >