Embedding Python with Tkinter

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

    #1

    Embedding Python with Tkinter

    I have written a Windows GUI application in C++ and I would like to
    embed Python into the application to enable users to write plugins.

    The problem is when the plugin tries to use Tkinter. Tkinter creates its
    own root window, which I remove by calling:
    root = Tk()
    root.withdraw()

    But when I create a new dialog with Tkinter, I have to create it without
    a parent, which causes it to be shown in the task bar and I cannot make
    it modal. Does anyone know how to create a Tkinter window as a child of
    a window that was not created by Tkinter?

    Ivan Johansen
Working...