[Xcb] python binding for core functions
Thomas Hunger
hto at arcor.de
Mon Jun 4 15:04:40 PDT 2007
Hello,
since I do not have too much time for this right now I thought I
should publish it, in case someone else wants to restart or improve
it.
It contains the very basic functions from xcb which can be used
without auto-generation. To get the code, use:
$ git clone git://htom.de/python-libxcb
Use e.g. like this (make sure _xcb is in your PYTHONPATH):
import _xcb
# None carries the same meaning as NULL in the c API
c = _xcb.Connection(None, None)
print c.get_maximum_request_length()
e = c.poll_for_event()
print e # should be None
print c.get_file_descriptor()
print c.has_error()
print _xcb.parse_display("xcb.org:0.0")
print c.generate_id()
More information about the Xcb
mailing list