2 from __future__ import absolute_import
4 import wx._core #We only need the core here, which speeds up the import. As we want to show the splashscreen ASAP.
6 from util.resources import getPathForImage
9 class splashScreen(wx.SplashScreen):
10 def __init__(self, callback):
11 self.callback = callback
12 bitmap = wx.Bitmap(getPathForImage('splash.png'))
13 super(splashScreen, self).__init__(bitmap, wx.SPLASH_CENTRE_ON_SCREEN, 0, None)
14 wx.CallAfter(self.DoCallback)
21 def showSplash(callback):
22 from Cura.cura import CuraApp
24 splashScreen(callback)
28 def testCallback(splashscreen):
37 showSplash(testCallback)
39 if __name__ == u'__main__':