[wxPython-users] Drawing panel backgrounds with widgets visible on top

Christopher Barker Chris.Barker at noaa.gov
Mon Oct 22 09:49:26 PDT 2007


Robin Dunn wrote:
>> Only small annoyance was alot of flickering when resizing the window 
>> on win32. 

by default, Windows asks the app to re-paint itself constantly while the 
user is re-sizing the window. If it take a while to paint, then this 
will never look good, double buffering or not.

A little googling will help here, but the standard solution is to use a 
wx.Timer to delay the re-paint a bit, so it only happens when the user 
has stopped the re-size movement.

-Chris


-- 
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker at noaa.gov




More information about the wxpython-users mailing list