[Tutor] Tkinter help

Sheila King sheila@thinkspot.net
Thu, 23 Aug 2001 16:09:47 -0700

On Thu, 23 Aug 2001 18:42:42 -0400, "paul" <clanoftheinsane@hotmail.com>
wrote about [Tutor] Tkinter help:

:When using Tkinter, i want to have a window within my GUI program that will show the output that you normally see in the python interpreter window.  for example, i want to have a button display a list of data, but instead of that data being displayed in
 the interpreter, i want it to appear in my actual program in a widget.  any ideas?

Use a widget, such as a text widget, and get the output from sys.stdout
and send it to the text widget.

It looks like you could use the text.insert command for inserting the
output from sys.stdout into the text widget.

Sheila King