Added SplashScreen class from Mike Fletcher and use it in the demo.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4636 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
|
||||
import sys, os
|
||||
from wxPython.wx import *
|
||||
|
||||
from wxPython.lib.splashscreen import SplashScreen
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
@@ -355,7 +355,16 @@ class MyApp(wxApp):
|
||||
wxImage_AddHandler(wxJPEGHandler())
|
||||
wxImage_AddHandler(wxPNGHandler())
|
||||
wxImage_AddHandler(wxGIFHandler())
|
||||
frame = wxPythonDemo(NULL, -1, "wxPython: (A Demonstration)")
|
||||
|
||||
self.splash = SplashScreen(None, bitmapfile='bitmaps/splash.gif',
|
||||
duration=4000, callback=self.AfterSplash)
|
||||
self.splash.Show(true)
|
||||
wxYield()
|
||||
return true
|
||||
|
||||
def AfterSplash(self):
|
||||
self.splash.Close(true)
|
||||
frame = wxPythonDemo(None, -1, "wxPython: (A Demonstration)")
|
||||
frame.Show(true)
|
||||
self.SetTopWindow(frame)
|
||||
return true
|
||||
|
Reference in New Issue
Block a user