How to put a KDE application inside a Tkinter window ?
Michele Simionato
mis6 at pitt.edu
Fri Oct 4 12:48:12 EDT 2002
I discovered from a posting in c.l.p., that it is possible to put an X-Window
application inside a Tkinter window by using a BLT container. For instance
the following code insert an xclock inside a Tkinter window:
----
# works if the BLT library is installed
import os; from Tkinter import *
name="xclock"
t = Tk()
t.tk.call("package", "require", "BLT")
os.system(name+" &")
c = Widget(t,'blt::container')
c.pack(fill="both", expand="yes")
c.configure(relief="raised", name=name)
t.mainloop()
----
However, the previous code doesn't work for KDE applications, in the sense
that the application is open but outside the Tkinter window. I would like
to put the KDE mp3 player "noatun" inside a Tkinter window. How can I do that ?
Suggestions are welcome.
--
Michele Simionato - Dept. of Physics and Astronomy
210 Allen Hall Pittsburgh PA 15260 U.S.A.
Phone: 001-412-624-9041 Fax: 001-412-624-9163
Home-page: http://www.phyast.pitt.edu/~micheles/
More information about the Python-list
mailing list