[pygtk] IOChannels with pygtk

Kelvin Ho kelvin.ho.ka.wai at gmail.com
Sat Jul 11 20:00:30 WST 2009


Hi,

Have a looky here:

http://www.pygtk.org/docs/pygobject/glib-functions.html#function-glib--io-add-watch

All it needs is a file descriptor, which should also work for network
sockets. Alternatively, use this:

http://www.pygtk.org/docs/pygobject/glib-functions.html#function-glib--timeout-add

and use the Python select module to get non-blocking IO. Hey, it's what I
did for my FYP anyway.

Regards,
Kelvin

On Sat, Jul 11, 2009 at 1:41 AM, ShNaYkHs ShNaYkHs <shnaykhs at gmail.com>wrote:

> Hello,
> Do you know any tutorial or documentation about using IO Channels with
> pygtk ?
> I want to use it because it provides portable APIs common sockets that
> allow GUI programs using network features without blocking and without using
> threads.
> Thanks.
>
> _______________________________________________
> pygtk mailing list   pygtk at daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://faq.pygtk.org/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.daa.com.au/pipermail/pygtk/attachments/20090711/1dabe201/attachment.htm 


More information about the pygtk mailing list