Adding widgets to PyGtk



Hi-

I'm using pygtk and have a widget I would like to access that isnt part of gtk.
Specifically, the gtkglarea widget.

Unfortunately, the SWIG wrappers I created don't return a Python GTK object.
So
gl = gtkglarea.gtk_gl_area_new(attrib)
#gl=GtkWidget()
print gl
print type(gl)

results in 
_10491860_GtkWidget_p
<type 'string'>

and gl cannot be used as a widget.

I tried creating a PyGtk object inside my wrapper,after including pygtk.h,
but the result was a wicked core dump that my debugger couldnt trace.

Any help out there? If there was some way I could create a PyGtk object from  
the string gl, that might do the trick.

TIA
Mathew





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