launcher : move call to ShowSplashScreen and BackgroundInitialization to PreStart()
authorEdouard Tisserant
Wed, 31 Jan 2018 11:21:08 +0100
changeset 1914 99f8cfa80b15
parent 1913 338e2f51b685
child 1915 bdec3f1a40e7
launcher : move call to ShowSplashScreen and BackgroundInitialization to PreStart()
It doesn't change behaviour of launcher in beremiz, but may have some impact on some customizations.
Some customizations need to squeeze some bitmap folder init in between app creation and ShowSplashScreen
Beremiz.py
--- a/Beremiz.py	Tue Jan 30 16:23:50 2018 +0100
+++ b/Beremiz.py	Wed Jan 31 11:21:08 2018 +0100
@@ -124,9 +124,6 @@
         if wx.VERSION < (3, 0, 0):
             wx.InitAllImageHandlers()
 
-        self.ShowSplashScreen()
-        self.BackgroundInitialization()
-
     def BackgroundInitialization(self):
         self.InitI18n()
         self.CheckUpdates()
@@ -186,6 +183,8 @@
     def PreStart(self):
         self.ProcessCommandLineArgs()
         self.CreateApplication()
+        self.ShowSplashScreen()
+        self.BackgroundInitialization()
 
     def MainLoop(self):
         self.app.MainLoop()