DesignerDemo Example
import sys
from DevMachines import __pyside2__, __pyside6__
from DevMachines.QtitanBase import CommonStyle
from DevMachines.QtitanRibbon import RibbonMainWindow
if __pyside2__:
from PySide2 import QtCore
from PySide2.QtCore import Qt
from PySide2.QtWidgets import QApplication
if __pyside6__:
from PySide6 import QtCore
from PySide6.QtCore import Qt
from PySide6.QtWidgets import QApplication
from ui_DesignerDemo import Ui_RibbonMainWindow as ui
class MainWindow(RibbonMainWindow):
def __init__(self):
RibbonMainWindow.__init__(self)
self.ui = ui()
self.ui.setupUi(self)
self.ribbonBar().setFrameThemeEnabled(True)
geom = self.screen().availableGeometry()
self.resize(2 * geom.width() / 3, 2 * geom.height() / 3)
if __name__ == "__main__":
app = QApplication(sys.argv)
w = MainWindow()
w.show()
sys.exit(app.exec_())