Tkinter program with a usable interpreter console

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • beginner

    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

  • Ivan Johansen

    #2
    Re: Tkinter program with a usable interpreter console

    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:


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

    Ivan Johansen

    Comment

    • beginner

      #3
      Re: Tkinter program with a usable interpreter console

      On Jul 27, 6:17 pm, Ivan Johansen <n...@padowan.d kwrote:
      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.

      Comment

      Working...