qt-material/examples/runtime/runtime_dock.py
2020-12-13 16:35:46 -05:00

25 lines
751 B
Python

from PySide6.QtWidgets import QApplication, QMainWindow
from PySide6.QtUiTools import QUiLoader
from qt_material import QtStyleTools
########################################################################
class RuntimeStylesheets(QMainWindow, QtStyleTools):
# ----------------------------------------------------------------------
def __init__(self):
""""""
super().__init__()
self.main = QUiLoader().load('main_window.ui', self)
self.apply_stylesheet(self.main, 'light_red.xml')
self.add_menu_theme(self.main, self.main.menuStyles)
self.show_dock_theme(self.main)
if __name__ == "__main__":
app = QApplication()
frame = RuntimeStylesheets()
frame.main.show()
app.exec_()