[pygtk] Unable to wrap enum

Gian Mario Tagliaretti gianmt at gnome.org
Mon Jun 18 23:36:42 WST 2007


2007/6/18, varun_shrivastava <shrivastavavarun a yahoo.co.in>:

> > i didn't get your question
> >
> > my header file is as
> >  #include <glib-object.h>
> >   6
> >   7 G_BEGIN_DECLS
> >   8
> >   9 #define ADD_TYPE_NUM    (add_num_get_type())
> >  10 #define ADD_NUM(object) (G_TYPE_CHECK_INSTANCE_CAST((object),

This is a different example than before, furthermore the line numbers
and the way you quote messages don't make it very easy to help you.

Please have a look to a simple project that use codegen to extract and
build the sources from a good C library.

I think a good example is goocavans/pygoocanvas, not because I am one
of the authors but because it is a fairly complete example but not as
complex as pygtk.

Goocanvas has a well defined enum system, which is auto-generated with
glib-mkenums, look at goocanvasenumtypes.[ch].

cheers
-- 
Gian Mario Tagliaretti


More information about the pygtk mailing list