[pygtk] iosource
Martin Schulze
martin-ml at hippogriff.de
Mon Jun 29 05:33:44 WST 2009
Hello,
I have a problem with the GIOSource wrapper. In the attached test
program I'm using either
a) gobject.io_add_watch() or
b) gobject.iosource.add_poll_fd() and gobject.iosource.attach()
to listen on a pipe in the glib main context with the following result:
a) works like a charm (see the dialog being updated every second).
b) just produces the endlessly repeated error output
AttributeError: prepare
AttributeError: check
Use "use_poll_fd={False/True}" to switch between a) and b).
Can someone guess what's going wrong?
Best Regards,
Martin
P.S.: Background: version b) helps me to port the program to win32. I
have already implemented an overlapping i/o version of
_multiprocessing.PipeConnection (in python using pywin32). I just need
to hook the win32 event handle into the glib main context like in
version b) of attached code ...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.py
Type: text/x-python
Size: 2725 bytes
Desc: not available
Url : http://www.daa.com.au/pipermail/pygtk/attachments/20090628/47ed88e0/attachment.py
More information about the pygtk
mailing list