[wxPython-users] Re: EVT_PAINT handler raising excption, gets called repeatedly

Christopher Barker Chris.Barker at noaa.gov
Tue Jul 3 14:06:37 PDT 2007


Charl P. Botha wrote:
>  I'm
> curious as to what wxPython's event handling does with this handler,
> as it does not exit normally, due to the exception raised by the
> method it calls. 

Is that before you create a PaintDC? I think it's required that an 
EVT_PAINT handler create a PaintDC -- if that doesn't happen perhaps the 
system thinks the screen still needs to be painted (which is does!), and 
raised the event again.

-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