[wxPython-users] Splash screen refresh issue

Robin Dunn robin at alldunn.com
Wed Jan 2 17:00:46 PST 2008


David Poundall wrote:

> Now once the server code kicks in the full paint of the splash screen is 
> interrupted and you can have the original greyed out image for anything 
> up to 2 -3 seconds before the paint event fully runs its course.  How 
> may I hold off following applications in order to first of all get a 
> full paint of the splash screen.    I have tried removing the yield 
> command in order that the splash screen holds on to processing power 
> long enough to paint the bitmap, but that doesn’t help.

#1 rule in GUI programming (well, 2nd one, after "Choose wxPython" 
<wink!>) is  to never block the GUI thread.  If you stop the flow of 
control from getting into or getting back to the MainLoop then events 
(like the paint events for the splash screen) will not be delivered to 
their handlers.

See http://wiki.wxpython.org/LongRunningTasks


-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!




More information about the wxpython-users mailing list