diff -r e27d253bd0ba -r 4f7a0c40a7c3 Beremiz.py --- 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()