[wxPython-users] buffered dc

Robin Dunn robin at alldunn.com
Thu Jul 13 11:55:25 PDT 2006


Gabriel Murray wrote:
> I am re-drawing to the buffer in the EVT_PAINT handler. About 1500 lines.

If you are saving the buffer then all you need to do in the EVT_PAINT 
handler is create the wx.BufferedPaintDC and then return and it will 
draw the current contents of the buffer for you.  Please look at the 
doodle sample or items in the demo that use a a buffered DC.

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





More information about the wxpython-users mailing list