[Tutor] WxPython Splashscreen?

Alan Gauld alan.gauld at btinternet.com
Sat Sep 8 09:38:08 CEST 2007


"Trey Keown" <trey at opmstech.org> wrote

> Does anyone know how to make a wxPython splashscreen?

Using the wxSplashScreen widget?

> not found any working examples.

The wxPython book offers this:

class SketchApp(wx.App):
   def OnInit(self):
       image = wx.image('splash.bmp', wx.BITMAP_TYPE_BMP)
       bmp = image.ConvertToBitmap()
       wx.SpashScreen(bmp,wx.SPLASH_NO_CENTER|wx.SPLAS_TIMEOUT,1000,None,-1)
       wx.Yield()
       frame = SketchFrame(None)
       etc...

The book is invaluable for wxPython users.

-- 
Alan Gauld
Author of the Learn to Program web site
http://www.freenetpages.co.uk/hp/alan.gauld 




More information about the Tutor mailing list