From: Daid Date: Sat, 1 Sep 2012 12:41:07 +0000 (+0200) Subject: Fix the splashscreen in combination with the first run wizard X-Git-Tag: 13.03~356 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=560e2d8048d82af65d03a308f21d4ca965676b33;p=cura.git Fix the splashscreen in combination with the first run wizard --- diff --git a/Cura/gui/splashScreen.py b/Cura/gui/splashScreen.py index 276cc79e..ee9a9455 100644 --- a/Cura/gui/splashScreen.py +++ b/Cura/gui/splashScreen.py @@ -14,8 +14,11 @@ class splashScreen(wx.SplashScreen): self.callback = callback bitmap = getBitmapImage("splash.png") super(splashScreen, self).__init__(bitmap, wx.SPLASH_CENTRE_ON_SCREEN, 0, None) - wx.CallAfter(callback) - wx.CallAfter(self.Destroy) + wx.CallAfter(self.DoCallback) + + def DoCallback(self): + self.callback() + self.Destroy() def showSplash(callback): app = wx.App(False)