[wxPython-users] how to get the native DC value for drawing?
Christopher Barker
Chris.Barker at noaa.gov
Mon Nov 26 09:12:14 PST 2007
Robin Dunn wrote:
>> on the windows, but I don't know how to get the DC in wxPython. It
>> seems that self.GetHandle() does not help.
>
> dc.GetHDC()
But is that what you really want? If you're writing this in wxPython,
and want it to be platform independent, then you want to use the regular
old wx.DCs (and probably GraphicsContext, as it looks like you need
gradients, alpha blending, etc.):
http://wiki.wxpython.org/RecipesImagesAndGraphics
is a good place to start for more info.
-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