471,350 Members | 1,450 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,350 software developers and data experts.

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

I am porting www.rmchart.com to python, now the code is almost
finished, and I have supplied some examples.py which write to
picturefiles directly, but the example to draw the chart on GUI stops
me.

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?

thanx
Nov 24 '07 #1
0 875

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by SeeBelow | last post: by
2 posts views Thread by Thorkild Stray | last post: by
25 posts views Thread by BJörn Lindqvist | last post: by
8 posts views Thread by Erik Johnson | last post: by
5 posts views Thread by exhuma.twn | last post: by
2 posts views Thread by Kevin Walzer | last post: by
7 posts views Thread by Protected | last post: by
reply views Thread by Guilherme Polo | last post: by
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.