This is a newbie question: I do not yet have any development experience
with wxPython. I would like to build a GUI app using
wxPython and a Python-wrapped Xlib-based plotting package (i.e.
I would like to create a wxFrame and have the plotting go to that frame).
The only hooks in the plotting package available is one in which one
can specify the file descriptor of the X socket under Unix/X11.
Are there any example available illustrating how one would do this?
Thanks,
Lila Chase
lchase@llnl.gov
Lila Chase wrote:
This is a newbie question: I do not yet have any development experience
with wxPython. I would like to build a GUI app using wxPython and a Python-wrapped Xlib-based plotting package (i.e.
I would like to create a wxFrame and have the plotting go to that frame).
The only hooks in the plotting package available is one in which one
can specify the file descriptor of the X socket under Unix/X11.
Are there any example available illustrating how one would do this?
Are you sure it wants the file descriptor? I've never seen any package like that and I wouldn't even know how to get the descriptor. I thought all windows in an app shared the same socket anyway, but it's been a *long* time since I worked with X at that low of a level so I could be wrong.
If your plotting package can use a X-Window handle then you can get that with the GetHandle method. BTW, you probably don't want to use a wxFrame for this, but a wxWindow that you then place into a frame.
ยทยทยท
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!