Пример #1
0
class App(QtWidgets.QApplication):
    def __init__(self, sys_argv):
        super(App, self).__init__(sys_argv)
        # Set Application Default Settings
        QtCore.QCoreApplication.setOrganizationName("DreamingKeldi")
        QtCore.QCoreApplication.setApplicationName("MailAutomate")

        self.main_view = MainView()
        self.main_view.show()
        self.main_ctrl = MainController(None, self.main_view)
Пример #2
0
class App(QApplication):
    def __init__(self, sys_argv):
        super(App, self).__init__(sys_argv)

        # covnert from ui to py for view
        # os.system("pyuic5 view/app.ui -o view/main_view_ui.py")
        self.model = Medusa()
        self.main_controller = MainController(self.model)
        self.main_view = MainView(self.model, self.main_controller)
        self.main_view.show()