[Python-gtkextra-devel] Initial code in CVS
Status: Beta
Brought to you by:
treeves
From: Toby D. R. <to...@so...> - 2002-07-10 20:02:18
|
Folks, I just checked in the initial (and very rough) python wrapper code for a slightly patched version gtkextra-2 from here: cvs -z3 -d :pserver:ano...@cv...:/cvsroot/gtkextra co gtkextra-2 The patch is attached. Hopefully gtkextra's author will entertain the changes sometime. I built and installed its rpms. There is something funny going on with linking to the gtkextra library. Might be libtool differences. I'm sure it can be figure out. Until someone does, for hacking you use the script "test.sh" to launch a test of the binding. Instead of branching the python-gtkextra tree, I made a new top level module (directory) called python-gtkextra2. On Red Hat 7.3 cd /your-cvs-directory/python-gtkextra2 source setup-rh73.sh ./autogen.sh make cd examples ./test.sh testcharsel.py Thats the only example I ported over to PyGtk2. Of course the bindings are not finished yet either.... Need to edit gtkextra.defs and add correct "field entries" for each object definition. Then write any accessor or override function in gtkextra.override. Should not be to hard to get it mostly working. The Gtk 2.0 and PyGtk2 authors have put a lot of work into making it easy to write language bindings if the "rules" are followed. So far the GtkExtra2 code seams OK. Toby |