Tkinter program with a usable interpreter console

beginner zyzhu2000 at gmail.com
Fri Jul 27 17:37:01 EDT 2007


Hi everyone,

I have a question about Tkinter programs. What I want is a GUI window
along with an interpreter window, so that I can do things by clicking
on the GUI or typing commands in the interpreter console. For example,
I wish I can type in the console:

>>> modify_my_key_data()
>>> update_gui()

and my gui is modified for me.

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?

Thanks,
beginner




More information about the Python-list mailing list