[EMAIL PROTECTED] wrote: > On a related topic, it seems like it would be nice to do *all* > drawing in > response to paint events. When I get an event from the timer, I > would just tell wx that part of the window needs redrawing, and > depend on it to give me a paint even when nothing of higher > priority needs to be done. > I've seen this kind of logic recommended in other GUI tookits. Is > it a good idea in wxPython, and, if so, how does one do it?
At least it is not required -- there are device contexts for use inside and outside of paint events. One nice strategy from an example in "wxPython in Action" is the following: * the frame has Draw methods that draw into a BufferedDC, which is chained to a bitmap member * inside the paint method, the bitmap member is drawn to screen Regards, Björn -- BOFH excuse #393: Interference from the Van Allen Belt. -- http://mail.python.org/mailman/listinfo/python-list