mirror of
https://github.com/UN-GCPDS/qt-material.git
synced 2025-02-03 17:13:02 +08:00
25 lines
444 B
Python
25 lines
444 B
Python
import sys
|
|
|
|
from PySide6 import QtWidgets
|
|
# from PySide2 import QtWidgets
|
|
# from PyQt5 import QtWidgets
|
|
# from PyQt6 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()
|
|
|
|
if hasattr(app, 'exec'):
|
|
app.exec()
|
|
else:
|
|
app.exec_()
|
|
|