By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,965 Members | 1,690 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,965 IT Pros & Developers. It's quick & easy.

Tkinter program with a usable interpreter console

P: n/a
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

Jul 27 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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
Jul 27 '07 #2

P: n/a
On Jul 27, 6:17 pm, Ivan Johansen <n...@padowan.dkwrote:
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
It looks interesting. Let me take a close look.

Jul 28 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.