[Tutor] providing a Python command line within a Tkinter appl
alan.gauld at btinternet.com
Tue Jan 1 10:29:19 CET 2008
"Garry Willgoose" <garry.willgoose at newcastle.edu.au> wrote
> packages in the first place). Plan A was that I'd somehow like to
> the python interpreter for this but I can't find any obvious way to
> do this.
Take a look at the IDLE source cocde. IDLE's interactive shell is
essentially what you want - a python interpreter insode aTkinter
If you were using wxPyton then the WxPy package has a shell
component that you could have used, but I don't know of any such
component for Tkinter. However it might be possible to re-use
the IDLE code...
Author of the Learn to Program web site
More information about the Tutor