How to use a Tkinter widget inside a PyGtk or wxPython HMI?

S

Sebastien Aubry

[This is the translation of a question issued on the fr.comp.lang.python
newsgroup]

Hello,

I happen to use in my programs a widget based on Tkinter Canvas. It is
Zinc (http://www.tkzinc.org), which allows to draw using transparency,
gradients, translations, rotations, ... using OpenGL.

However, this widget depends on Tkinter, whose look I find oldy, though
I would like to try PyGtk or wxPython.

I would like to know if there is a method for using a Tkinter widget
inside a PyGtk or wxPython interface.

I have already seeked some information about this:

- in the same window: this seems impossible, but it might actually be
possible! I have seen that with GTK and VTK
(http://public.kitware.com/VTK), somebody has managed to solve such a
problem (type "gtkvtkrenderwindow" in Google).

- in different windows: the (not so smart) idea would be to have a main
PyGtk window, and, in the foreground, a Tkinter window without
decorations, only containing the Tkinter-dependant widget. The events
(resize, close...) should, of course, be synchronized.

If you have any hint, I would be happy to know more.

Regards


Sébastien Aubry
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top