embed notepad into a frame widget

M

Matt

all,

trying to load an application (notepad for instance) and have it sit
inside a Python application window. When the main window maximises or
minimises, the (notepad) app follows.

I am pretty sure I need to use a frame widget under tkinter (win32) but
not exactly sure how to do it.

I can make the frame but not embed notepad.

do I use something like this?


from Tkinter import *
master = Tk()
frame = Frame(width=768, height=576, bg="", colormap="new")
frame.pack()
video.attach_window(frame.window_id()) <--- not sure!!
mainloop()


Thanks

-Matt
 
D

Diez B. Roggisch

Matt said:
all,

trying to load an application (notepad for instance) and have it sit
inside a Python application window. When the main window maximises or
minimises, the (notepad) app follows.

I am pretty sure I need to use a frame widget under tkinter (win32) but
not exactly sure how to do it.

You are pretty wrong being sure :) Under windows, it is indeed possible to
embed certain applications into others - the related technical term is
conveniently called OLE (Object lining and embedding).

But the application has to be prepared for doing so - and this is deep
windows stuff, so I guess you can't do that with Tkinter.

Another technique is to use so-called activex-controls. The IEfor instance
is available as such a control. But that also isn't doable with Tkinter
(AFAIK, I'm not totally sure on that). But wxPython can:

http://www.wxpython.org/MigrationGuide.html

Diez
 
M

Matt

Diez said:
You are pretty wrong being sure :) Under windows, it is indeed possible to
embed certain applications into others - the related technical term is
conveniently called OLE (Object lining and embedding).

Thanks,

at least I didnt spend two much time on it :)

-Matt
 

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
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top