DesignerDemo Example

import sys

from DevMachines import __pyside2__, __pyside6__
from DevMachines import QtitanBase
from DevMachines.QtitanNavigationDesignUI import NavigationMainWindow

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_NavigationMainWindow as ui

class Window(NavigationMainWindow):
    def __init__(self):
        NavigationMainWindow.__init__(self)
        self.setWindowTitle(self.tr("Navigation MDI Application"))
        self.ui = ui()
        self.ui.setupUi(self)
        geom = self.screen().availableGeometry()
        self.resize(2 * geom.width() / 3, 2 * geom.height() / 3)

if __name__ == "__main__":
    app = QApplication(sys.argv)
    app.setApplicationName("QtitanRibbon Design-Time creation")
    app.setOrganizationName("Developer Machines")
    w = Window()
    w.show()
    sys.exit(app.exec_())