[pygtk] outputting answer to GUI

Johan Dahlin jdahlin at async.com.br
Wed Jul 19 10:08:37 WST 2006


> Right now, the script simply prints the answer to the
> screen, but I think printing to the GUI would be more
> logical.  I have been going through the PyGTK tutorial
> and docs and have not found a widget that exists
> solely to accept information that would normally print
> to the screen.  What should I use?  Can I modify a
> label to do the job?
>   
gtk.Label is the right widget for this.
If you want a terminal like widget, look at gtk.TextView, which can 
display multiple lines

Johan


More information about the pygtk mailing list