Use input_add() as described here: http://www.async.com.br/faq/pygtk/index.py?req=show&file=faq20.011.htp
Tim. On Fri, 2004-01-30 at 14:46, Felix Breuer wrote: > Hello *! > > I want to monitor a standard unix fifo from my PyGTK app. Currently I am > using a timeout as in: > > def on_timeout(): > input = f.readline() > if len(input) > 0: > # do something ... > > f = open(fifo_name,"r") > gtk.timeout_add(1000, on_timeout) > > But I guess there must be a better way... Which one is it? > > Thanks for any suggestions, > Felix > _______________________________________________ > pygtk mailing list [EMAIL PROTECTED] > http://www.daa.com.au/mailman/listinfo/pygtk > Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/ -- _______________________________________________________________________ Timothy E. Peoples Have Camel, Will Code [EMAIL PROTECTED] _______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
