PySide6
1、PySide6
·1843 字·4 分钟·
loading
·
loading
Python
GUI
PySide6
Python 的图形化界面 # 程序的用户交互界面,英文称之为 UI (user interface)
2、QtDesigner
·493 字·1 分钟·
loading
·
loading
Python
GUI
PySide6
我们配置好 QtDesigner 后,就可以在 IDE 中创建.ui文件了
使用 UI 文件 # 动态加载UI文件 # from PySide6.QtWidgets import QApplication from PySide6.QtUiTools import QUiLoader application = QApplication([]) ui_loader = QUiLoader() ui = ui_loader.load('say_hello.ui') ui.show() application.exec() 转化UI文件为Python代码 # 还有一种使用UI文件的方式:先把UI文件直接转化为包含界面定义的Python代码文件,然后在你的程序中使用定义界面的类
3、QSS
·1092 字·3 分钟·
loading
·
loading
Python
GUI
PySide6
QSS # 如果你学习过Web网页开发,就会发现这个名词和 CSS 特别的相似。