471,325 Members | 1,434 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,325 software developers and data experts.

Tkinter program with a usable interpreter console

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
2 2998
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
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.

Similar topics

reply views Thread by Charles Starrett | last post: by
2 posts views Thread by Anthony Baxter | last post: by
3 posts views Thread by Bob Greschke | last post: by
1 post views Thread by w chun | last post: by
2 posts views Thread by Alexandre Guimond | last post: by
44 posts views Thread by bg_ie | last post: by
5 posts views Thread by msunderwd | last post: by
2 posts views Thread by Doran, Harold | last post: by
reply views Thread by nicstel | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.