embed notepad into a frame widget

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Matt

    #1

    embed notepad into a frame widget

    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_wi ndow(frame.wind ow_id()) <--- not sure!!
    mainloop()


    Thanks

    -Matt
  • Diez B. Roggisch

    #2
    Re: embed notepad into a frame widget

    Matt wrote:
    [color=blue]
    > 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.[/color]

    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:



    Diez

    Comment

    • Matt

      #3
      Re: embed notepad into a frame widget

      Diez B. Roggisch wrote:
      [color=blue]
      > 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).[/color]

      Thanks,

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

      -Matt

      Comment

      Working...