[pygtk] PyGTK and C
Gonzalo Aguilar Delgado
gad at aguilardelgado.com
Thu Mar 23 09:30:19 WST 2006
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