wxPython Splash Screen

import wx
 
def show_splash():
    # create, show and return the splash screen
    bitmap = wx.Bitmap('images/splash.png')
    splash = wx.SplashScreen(bitmap, wx.SPLASH_CENTRE_ON_SCREEN|wx.SPLASH_NO_TIMEOUT, 0, None, -1)
    splash.Show()
    return splash
 
def main():
    app = wx.PySimpleApp()
    splash = show_splash()
 
    # do processing/initialization here and create main window
    frame = MyFrame(...)
    frame.Show()
 
    splash.Destroy()
    app.MainLoop()
 
if __name__ == '__main__':
    main()