[wxPython-dev] memory dc problem in 2.7pre
Christopher Barker
Chris.Barker at noaa.gov
Fri Jul 21 09:31:40 PDT 2006
To use a MemoryDC, you need to select a wx.Bitmap into it:
> def _createMD(self):
> print "OK"
> dc = wx.MemoryDC()
B = wx.EmptyBitmap(Width, Height)
dc.SelectObject(B)
See assorted stuff in the Wiki for more info:
http://wiki.wxpython.org/index.cgi/DoubleBufferedDrawing
and other pages.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
NOAA/OR&R/HAZMAT (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-dev
mailing list