import sys, os, time import wx import images import wx.html def opj(path): """Convert paths to the platform-specific separator""" return apply(os.path.join, tuple(path.split('/'))) #--------------------------------------------------------------------------- #--------------------------------------------------------------------------- class MySplashScreen(wx.SplashScreen): def __init__(self): bmp = wx.Image(opj("bitmaps/splash.gif")).ConvertToBitmap() wx.SplashScreen.__init__(self, bmp, wx.SPLASH_CENTRE_ON_SCREEN | wx.SPLASH_TIMEOUT, 3000, None, -1) self.Bind(wx.EVT_CLOSE, self.OnClose) def OnClose(self, evt): self.Hide() class MyApp(wx.App): def OnInit(self): wx.InitAllImageHandlers() splash = MySplashScreen() splash.Show() return True app = MyApp(0) app.MainLoop()