Debian Codegraph @

examples/runtime/runtime_dock.py

raw symbols SCIP
1 from PySide6.QtWidgets import QApplication, QMainWindow
2 from PySide6.QtUiTools import QUiLoader
3 from qt_material import QtStyleTools
4
5
6 ########################################################################
7 class RuntimeStylesheets(QMainWindow, QtStyleTools):
8 # ----------------------------------------------------------------------
9 def __init__(self):
10 """"""
11 super().__init__()
12 self.main = QUiLoader().load('main_window.ui', self)
13
14 self.apply_stylesheet(self.main, 'light_red.xml')
15 self.add_menu_theme(self.main, self.main.menuStyles)
16 self.show_dock_theme(self.main)
17
18
19 if __name__ == "__main__":
20 app = QApplication()
21 frame = RuntimeStylesheets()
22 frame.main.show()
23 app.exec_()
24