# HG changeset patch # User Edouard Tisserant # Date 1522358726 -7200 # Node ID 5d72971a36a398d6af20035586534a064c6ec413 # Parent 6b357f1e3134f1cfed9b25909605adc2695252a9 Fixed bug that was creating many frames at starup on Windows diff -r 6b357f1e3134 -r 5d72971a36a3 Beremiz.py --- 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,