[Xcb] first cut of python bindings for libxcb

Barton C Massey bart at cs.pdx.edu
Mon Mar 31 21:34:56 PDT 2008


My Python-fu is weak.  What exactly does this code do? :-)

We need to get the Python XML parsing code promoted ASAP.
Does someone want to volunteer to tackle Thomas and/or
whoever to get what folks already have, then glue something
together in a suitable form?

	Bart

In message <47F13B19.1020405 at tycho.nsa.gov> you wrote:
> Xavier Toth wrote:
> > Changes to setting ACLOCAL_FLAGS in Makefile.am and a few other thigs
> > to help the examples.
> >   
> 
> I've reviewed this and, although it is SWIG-based instead of being 
> natively generated, I'd like to push it into a new project until such 
> time as the stylesheet-replacement parser is done.  At that time it can 
> be changed over to a native implementation and it will be marked 
> experimental until then.
> 
> Can a repo be created with the name "xpyb" to hold this?
> 
> 
> 
> > diff -ruN --exclude=.git --exclude='*.pc' --exclude=Makefile
> > --exclude=Makefile.in --exclude=.deps --exclude=doc --exclude=src
> > libxcb/bindings/Makefile.am libxcb.new/bindings/Makefile.am
> > --- libxcb/bindings/Makefile.am	1969-12-31 18:00:00.000000000 -0600
> > +++ libxcb.new/bindings/Makefile.am	2008-03-02 15:18:06.000000000 -0600
> > @@ -0,0 +1,3 @@
> > +if BUILD_PYTHON
> > +SUBDIRS=python
> > +endif
> > diff -ruN --exclude=.git --exclude='*.pc' --exclude=Makefile
> > --exclude=Makefile.in --exclude=.deps --exclude=doc --exclude=src
> > libxcb/bindings/python/examples/hello.py
> > libxcb.new/bindings/python/examples/hello.py
> > --- libxcb/bindings/python/examples/hello.py	1969-12-31 18:00:00.000000000 -0600
> > +++ libxcb.new/bindings/python/examples/hello.py	2008-03-03
> > 09:40:23.000000000 -0600
> > @@ -0,0 +1,111 @@
> > +#!/usr/bin/env python
> > +
> > +# example helloworld.py
> > +
> > +import os
> > +import pygtk
> > +pygtk.require('2.0')
> > +import gtk
> > +import gtk.gdk
> > +
> > +import xcb


More information about the Xcb mailing list