[GtkGLExt] Glade again (python)



Hello,

I've implemented this code but something don't works accordingly

(...)
gladefile = gtk.glade.XML("opengl.glade")   
glarea2 = gladefile.get_widget('drawingarea1')

glarea = gtk.DrawingArea();

gtk.gtkgl.widget_set_gl_capability(glarea,glconfig,None,True, gtk.gdkgl.RGBA_TYPE)
a = gtk.gtkgl.widget_is_gl_capable(glarea)
b = gtk.gtkgl.widget_is_gl_capable(glarea2)

print a, b, glarea2, glarea

This is the result:

True False <gtk.DrawingArea object (GtkDrawingArea) at 0x1705b70> <gtk.DrawingArea object (GtkDrawingArea) at 0x1705b98>

Why is it occuring? Is it a problem with my installation?

Regards,
Tiago

__________________________________________________
Fale com seus amigos de graça com o novo Yahoo! Messenger
http://br.messenger.yahoo.com/



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