[pygtk] PyGTK and C
Gonzalo Aguilar Delgado
gad at aguilardelgado.com
Thu Mar 23 10:37:10 WST 2006
Ok, solved again. jejeje
This was caused because `pygobject_new' is a macro to a class object and
the header must be included. Something was wrong with the include paths.
Hope the next can someone help me.
> Hi again...
> I found in the always forgotten FAQ:
> But my program does not compile, some libraries are missing:
> treeview_callbacks.o: In function `on_treevprofile_button_press_event':
> undefined reference to `pygobject_new'
> pkg-config --libs pygobject-2.0
> -lgobject-2.0 -lglib-2.0
> > Hello all!!!
> > I'm building a program with scripting support and I'm using Python as
> > you supposed...
> > I have the scripting engine in place and want it to be able to get data
> > from my GTK controls. Even more, I want Python to control the way
> > information is displayed inside a GTK frame.
> > I know that PyGTK can create objects and interact with GTK, but my
> > problem is:
> > How do I pass a reference from C language to a container so the PyGTK
> > enabled script can create new Widgets inside.
> > I know how to pass C basic types but not widgets...
> > I want also to avoid any Class-like interface under Python if this is
> > possible.
> > Thank you all.
Gonzalo Aguilar Delgado - Ingeniero en Informática
[ Seguridad & Medios de pago ]
More information about the pygtk