mirror of
https://github.com/UN-GCPDS/qt-material.git
synced 2025-02-03 17:13:02 +08:00
24 lines
603 B
Python
24 lines
603 B
Python
|
from PySide6.QtWidgets import QApplication, QMainWindow
|
||
|
from PySide6.QtUiTools import QUiLoader
|
||
|
from qt_material import apply_stylesheet
|
||
|
|
||
|
|
||
|
########################################################################
|
||
|
class ShowUI(QMainWindow):
|
||
|
# ----------------------------------------------------------------------
|
||
|
def __init__(self):
|
||
|
""""""
|
||
|
super().__init__()
|
||
|
self.main = QUiLoader().load('window.ui', self)
|
||
|
|
||
|
|
||
|
if __name__ == "__main__":
|
||
|
app = QApplication()
|
||
|
|
||
|
apply_stylesheet(app, theme='dark_cyan.xml')
|
||
|
|
||
|
frame = ShowUI()
|
||
|
frame.main.show()
|
||
|
|
||
|
app.exec_()
|