changing Text on wxPython splashscreen

David Bolen db3l at fitlinxx.com
Tue Mar 25 18:17:42 EST 2003


Harald Massa <cpl.19.ghum at spamgourmet.com> writes:

> Cliff,
> 
> > It appears this is written in Python + wxPython, so it isn't the spam it
> > initially appeared to be.
> 
> I'm allso surprised. And it looks quite good.
> 
> Can anybody explain to me how to get the changing text over the 
> splashscreen in wxPython, like this software uses?

Well, a splashscreen is just another window, so you can do anything
you want with it (such as grab a DC and draw text into it).

Under older wxPython releases, the splashscreen class was local to
wxPython (in wxPython.lib.splashscreen), and you can still check out
that module to see how it was implemented.  It was basically just a
frameless window which drew a bitmap in response to a paint message,
but you could easily subclass that to do more during paint processing
and/or to update the window in any way you want.

Newer wxPython releases wrap the wxSplashScreen class from wxWindows,
but that's still a wxWindow, so you can still subclass that and do
whatever manipulations you want to beyond the drawing of the bitmap.

--
-- David
-- 
/-----------------------------------------------------------------------\
 \               David Bolen            \   E-mail: db3l at fitlinxx.com  /
  |             FitLinxx, Inc.            \  Phone: (203) 708-5192    |
 /  860 Canal Street, Stamford, CT  06902   \  Fax: (203) 316-5150     \
\-----------------------------------------------------------------------/




More information about the Python-list mailing list