chiark / gitweb /
Update the changelog.
[cura.git] / Cura / gui / splashScreen.py
1 from __future__ import absolute_import
2 __copyright__ = "Copyright (C) 2013 David Braam - Released under terms of the AGPLv3 License"
3
4 import wx._core #We only need the core here, which speeds up the import. As we want to show the splashscreen ASAP.
5
6 from Cura.util.resources import getPathForImage
7
8 class splashScreen(wx.SplashScreen):
9         def __init__(self, callback):
10                 self.callback = callback
11                 bitmap = wx.Bitmap(getPathForImage('splash.png'))
12                 super(splashScreen, self).__init__(bitmap, wx.SPLASH_CENTRE_ON_SCREEN, 0, None)
13                 wx.CallAfter(self.DoCallback)
14
15         def DoCallback(self):
16                 self.callback()
17                 self.Destroy()