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:
Robin Dunn
1999-11-20 21:15:12 +00:00
parent 37bebc1112
commit 9fb56e0cbc
4 changed files with 128 additions and 2 deletions

View File

@@ -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