[Xcb] first cut of python bindings for libxcb

Xavier Toth txtoth at gmail.com
Tue Apr 1 15:03:07 PDT 2008


Is there an example of an XML based binding for another language in
particular I'd be interested in any parsing code or xslt?


On Tue, Apr 1, 2008 at 1:39 PM, Eamon Walsh <ewalsh at tycho.nsa.gov> wrote:
> Barton C Massey wrote:
>
> > My Python-fu is weak.  What exactly does this code do? :-)
> >
> >
>
>  It's a Python binding that is generated from the C header files.  Which is
> admittedly not the best solution but it can be tossed out once we have a
> better one that uses the XML description directly.
>
>
>
> > 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
> >
> >
>
>  I just grabbed what is currently available at
> git://people.freedesktop.org/~tom/libxcb and I'm going to start hacking on
> it.
>
>
>
> >
> >
> >
> > 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
> > > >
> > > >
> > >
> >
> > _______________________________________________
> > Xcb mailing list
> > Xcb at lists.freedesktop.org
> > http://lists.freedesktop.org/mailman/listinfo/xcb
> >
> >
> >
>
>
>
>  --
>  Eamon Walsh <ewalsh at tycho.nsa.gov>
>  National Security Agency
>
>


More information about the Xcb mailing list