Embedding Python with Tkinter

I

Ivan Johansen

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
 

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,780
Messages
2,569,611
Members
45,270
Latest member
TopCryptoTwitterChannels_

Latest Threads

Top