[Xcb] language bindings for xcb
Thomas Hunger
hto at arcor.de
Fri Jun 1 06:38:08 PDT 2007
> >>> import xcb
> >>> import render
> >>> c = xcb.Connection()
> >>> win = c.generate_id()
> >>> r = c.get_render_extension() # new method, checking whether
> >>> render
>
> ext. exists
>
> >>> r.create_picture(...) # no need to add 'c' explicitly since it
> >>> can
This does not really solve the problem because c would need to have a "get_render_extension" function right from the start. Which means that I need to program all possible extensions into the basic connection object.
If I just tourn your example around, e.g.
>>> import render
>>> r = render.from_connection(c)
It would solve the problem. So: thanks a lot!
Tom
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freedesktop.org/archives/xcb/attachments/20070601/bd935eba/attachment.html
More information about the Xcb
mailing list