I have make some experiments. And I have found a answer to my problem. :)
child = pexpect.spawn('find /usr -type d')
while gtk.events_pending():
gtk.main_iteration()
line = child.readline()
while line:
while gtk.events_pending():
gtk.main_iteration()
tbuffer1.insert_at_cursor(line)
tview1.scroll_to_mark(tbmark1, 0.05, True, 0.0, 1.0)
line = child.readline()
regards
Marcus
This sort of thing seems reasonable, but I found in CANVAS that the more
I did while gtk.events_pending() loops, the more problems I ran into.
Threading is tough - you're going to want to do a callback based
solution for this.
-dave
_______________________________________________
pygtk mailing list [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/