Re: Tkinter program with a usable interpreter console

2007-07-27 Thread Ivan Johansen
beginner wrote:
> The problem is that the Tkinter program ends with a .mainloop() call
> and it is not going to give back control to the command prompt. I feel
> it is almost like I need to implement the python shell myself. Is
> there any better way of doing this?

Take a look at this:
http://lfw.org/python/Console.py

I haven't really used it myself yet, but it looks really great.

Ivan Johansen
-- 
http://mail.python.org/mailman/listinfo/python-list


Embedding Python with Tkinter

2007-01-11 Thread 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
-- 
http://mail.python.org/mailman/listinfo/python-list