pyqt6

pyqt6

##

参考

conda activate env_financeSoft

  • qtcore 非UI的核心库。文件、流等
  • qtgui: ui
  • qtwidgets 用户界面
  • Qaction:行为抽象。菜单栏,工具栏,键盘快捷
window = QWidget() # QWidget所有用户界面的基类。默认构造函数没有父级,即窗口
btn.resize(btn.sizeHint()) # 系统建议尺寸
QToolTip.setFont(QFont('SansSerif', 18)) # 设置tooltip格式
[widget对象].settooltip('thello ')
 QAction(QIcon('exit.png'), 'Exit', self)

results matching ""

    No results matching ""