PYQT 程序员的界面美化
支持pyqt5、pyside2
# 使用例子
import sys
# from PySide2 import QtWidgets
from PyQt5 import QtWidgets
from qt_material import apply_stylesheet
# create the application and the main window
app = QtWidgets.QApplication(sys.argv)
window = QtWidgets.QMainWindow()
# setup stylesheet
apply_stylesheet(app, theme='dark_teal.xml')
# run
window.show()
app.exec_()
核心代码只有一句
apply_stylesheet(app, theme='dark_teal.xml')
看了厌了可以换一个主题
一个web配色工具ColorTool
github地址。[^1]
[1]:https://github.com/UN-GCPDS/qt-material