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 <shnay...@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@daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://faq.pygtk.org/
>
_______________________________________________
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to