ember/ui/main_window.py

32 lines
793 B
Python

from PyQt5.QtWidgets import QMainWindow, QVBoxLayout, QWidget
from ui.project.project_panel import ProjectPanel
from ui.welcome.welcome_dialog import WelcomeDialog
class MainWindow(QMainWindow):
def __init__(self, projectManager):
super().__init__()
self.__projectManager = projectManager
self.setupUi()
self.initializeApp()
def setupUi(self):
self.projectPanel = ProjectPanel()
layout = QVBoxLayout()
layout.addWidget(self.projectPanel)
cwidget = QWidget()
cwidget.setLayout(layout)
self.setCentralWidget(cwidget)
def initializeApp(self):
# Show welcome dialog
welcome = WelcomeDialog(self.__projectManager)
res = welcome.exec()
print("Dialog result:", res)