Re: defs



Tim Daly, Jr. wrote:

Hi,

I'm working on CL-GTK, a GTK binding for Common Lisp, originally by
Gilbert Baumann.

Does anyone have good .defs for GTK 2.0?
'extract.py' from the language-bindings module does a lot, but
apparently doesn't yet generate the define-function and define-method
forms, as I see them in the pygtk .defs files.

How were the .defs files for pygtk generated?
Try checking out the gnome-python module from CVS. There is an h2def.py script that can convert most gtk+,etc headers to defs files (it doesn't extract all the information extract.py does, and vice versa). The defs files in gnome-python/pygtk/ are fairly complete, so using them directly is another option. You may be interested in using some of the ideas from the pygtk code generator which is in gnome-python/pygtk/codegen/

James.

--
Email: james daa com au              | Linux.conf.au 2003 Call for Papers out
WWW:   http://www.daa.com.au/~james/ |   http://conf.linux.org.au/cfp.html







[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]