--- a/Beremiz.py Sun Mar 25 16:22:36 2018 +0200
+++ b/Beremiz.py Thu Mar 29 23:25:26 2018 +0200
@@ -116,9 +116,12 @@
def ShowSplashScreen(self):
class Splash(AdvancedSplash):
+ Painted = False
def OnPaint(_self, event): # pylint: disable=no-self-argument
AdvancedSplash.OnPaint(_self, event)
- wx.CallAfter(self.AppStart)
+ if not _self.Painted: # trigger app start only once
+ _self.Painted = True
+ wx.CallAfter(self.AppStart)
bmp = wx.Image(self.splashPath).ConvertToBitmap()
self.splash = Splash(None,
bitmap=bmp,