By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,100 Members | 2,495 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,100 IT Pros & Developers. It's quick & easy.

how to get the native DC value in Tkinter/wxPython for drawing?

P: n/a
I am porting to python, now the code is almost
finished, and I have supplied some which write to
picturefiles directly, but the example to draw the chart on GUI stops

that is the vb declaration
nResult (LONG) = RMC_CreateChartOnDC(
ByVal nParentDC (LONG),
ByVal nCtrlId (LONG),
ByVal nX (LONG),
ByVal nY (LONG),
ByVal nWidth (LONG),
ByVal nHeight (LONG),
nParentDC (LONG) is Device context, on which the chart shall be painted

If I pass DC=ctypes.windll.user32.GetDC(0) to it, the chart is shown
on the windows, but I don't know how to get the DC in wxPython. It
seems that self.GetHandle() in wxPython does not help.

Can anyone help me?

Nov 24 '07 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.