On Sun, Nov 02, 2003 at 11:50:07AM +0100, Liquid wrote: > I've choose to display one line a time in the window > > while 1: > data_o = child_o.readline() > textbuffer.insert(textbuffer.get_end_iter(), data_o) > textview.scroll_to_mark(textbuffer.get_insert(), 0) > while gtk.events_pending(): > gtk.mainiteration(gtk.FALSE)
[snip] > It helps a lot not just a bit, the only problem I have to solve noe is how to > exit from the loop in the right way, if I place a return at the end of > > while gtk.events_pending(): > gtk.mainiteration(gtk.FALSE) > > just one line will be displayed, if I leave the loop open it wont stop so I > cannot, for example, call the mainquit(). What I think you want is to return when readline() returns '', no? Take care, -- Christian Robottom Reis | http://async.com.br/~kiko/ | [+55 16] 261 2331 _______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
