[Tutor] how to display terminal messages in dialog windowusingtkinter
Kent Johnson
kent37 at tds.net
Fri Feb 22 23:36:14 CET 2008
Tiger12506 wrote:
>> If you literally want print statements to appear in a dialog then no,
>> you can't do that (so far as I know!). But if you want the Tkinter
>
> Alan??? Redirect standard output. It doesn't have to be a file object. It
> can be any object with a write method.
Another way to do this, if you have control over the print statements,
is to use the logging package for output. It's not hard to make a log
handler that captures the messages and outputs them to a GUI panel.
Kent
More information about the Tutor
mailing list