Hi,

I want to check a few sockets and respond fairly quickly in a gnome
app.  

once up and running I do gtk.idle_add(self.check_comms) 

def check_comms(self):
        rtoread, rtowrite, err = select.select(self.in_comms, self.out_comms,
[], 1.0)
        if (len(rtoread) != 0):
                rtoread[0].handle_request()
        gtk.idle_add(self.check_comms)


but this of course ties everything up for a second unless there is a
message on a socket.  I am guessing a thread is the next thing to try
but am wondering if there are other options?

Thanks...



-- 

*
*  Rob Brown-Bayliss
*
_______________________________________________
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