I'm in the process of porting the XRandR protocol to python-xlib, and I'm running into some issues.

First, there's only one example of extension_add_event in the current code tree (Xlib/ext/shape.py) and it just uses info.first_event as the event ID; what should I use as the IDs for further events? first_event + 1?

Second, there are no examples of add_extension_error usage; what should I put in for the 'err' argument? It says that argument is an 'error class', but doesn't mention what sort of interface it should support.


David H. Bronke
Vice President of Project Development
G33X Nexus Entertainment

v3sw5/7Hhw5/6ln4pr6Ock3ma7u7+8Lw3/7Tm3l6+7Gi2e4t4Mb7Hen5g8+9ORPa22s6MSr7p6 hackerkey.com
Support Web Standards! http://www.webstandards.org/