Display console output to status bar in Tkinter?

John Grayson johngrayson at home.com
Thu Aug 10 09:38:02 EDT 2000


In article <#Toh7OpAAHA.401 at cpmsnbbsa08>,
  "rhyde99" <rhyde99 at email.msn.com> wrote:
> I need to know how it is possible to display only the last line of
> stdout/stderr output to my Tkinter status bar.  In the Python FAQ I
saw a
> way to catch stdout/stderr output, but this method concatenates all of
the
> output.  I just need the last line.
>
> I hope this is clear, and that someone can help!
>
> Thanks in advance
>
>

For some sample code, which gets you part of the way, get the
example code (File 1) from www.Manning.com/Grayson/Source.html.
In Chapter15/dbgwindow.py you'll see stdout and stderr handled
by a filter. A little adaptation and you're there...

  John Grayson


Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list