Beremiz.py
changeset 1796 4f7a0c40a7c3
parent 1792 4d1de8b0183f
child 1805 52daabbb6f90
--- a/Beremiz.py	Fri Sep 08 11:53:48 2017 +0300
+++ b/Beremiz.py	Tue Sep 12 10:21:51 2017 +0300
@@ -33,6 +33,8 @@
 
 class BeremizIDELauncher:
     def __init__(self):
+        self.app = None
+        self.frame = None
         self.updateinfo_url = None
         self.extensions = []
         self.app_dir = paths.AbsDir(__file__)
@@ -126,7 +128,6 @@
 
         self.ShowSplashScreen()
         self.BackgroundInitialization()
-        self.app.MainLoop()
 
     def BackgroundInitialization(self):
         self.InitI18n()
@@ -184,10 +185,17 @@
             self.splash.Close()
         self.frame.Show()
 
-    def Start(self):
+    def PreStart(self):
         self.ProcessCommandLineArgs()
         self.CreateApplication()
 
+    def MainLoop(self):
+        self.app.MainLoop()
+
+    def Start(self):
+        self.PreStart()
+        self.MainLoop()
+
 
 if __name__ == '__main__':
     beremiz = BeremizIDELauncher()