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/

Reply via email to