Fix the splashscreen in combination with the first run wizard

master
Daid 2012-09-01 14:41:07 +02:00
parent d631b51e4d
commit 560e2d8048
1 changed files with 5 additions and 2 deletions

View File

@ -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)