[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:
> http://www.async.com.br/faq/pygtk/index.py?req=show&file=faq23.015.htp
>
> But my program does not compile, some libraries are missing:
>
> treeview_callbacks.o: In function `on_treevprofile_button_press_event':
> /home/gad/workspace/3PEMV/profilemanager/treeview_callbacks.c:119:
> undefined reference to `pygobject_new'
>
> pkg-config --libs pygobject-2.0
>
> returns
>
> -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
mailing list