8 Feb 23:37
Some code that could be helpful in using wx.Overlay
Virgil Stokes <vs <at> it.uu.se>
2012-02-08 22:37:44 GMT
2012-02-08 22:37:44 GMT
With the help of Tim Roberts I have prepared some code that I hope will be useful for those of you who would like to know more about wx.Overlay. The code contains many comments which IMHO can be helpful when working with wx.Overlay. --V -- To unsubscribe, send email to wxPython-users+unsubscribe <at> googlegroups.com or visit http://groups.google.com/group/wxPython-users?hl=en
'''
Purpose: to show how wx.Overlay() can be used to draw an object then erase it
(recover the bitmap before the object was drawn on it).
This code snippet can be quite useful for the development of a more complex
interactive drawing package.
Notes:
1. wx.ClientDC --- draws to window (frame) object, the interior (client part)
2. wx.PaintDC --- similiar to wx.ClientDC, but only used when processing a
wx.PaintEvent
3. Code is heavily commented for my own purposes.
4. Code has been tested with Python 2.6.6, wxPython 2.8.12.1 on both a Windows
Vista and 7 platform. No anomalies have been observed.
5. TESTMODE = True, will "print" additional information for test purposes.
Creator: V. Stokes (vs <at> it.uu.se)
Version: 2012.02.08.02
'''
(Continue reading)
RSS Feed