Re: [GtkGLExt] Glade again (python)



On Wed, 2007-03-28 at 11:59 -0300, Tiago Correa wrote:
> 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?

Looks like you set gl capability on glarea and not on glarea2,
your test results show nothing surprising, everything seems to
be working normally... so what is not working ?

Cheers,
                 -Tristan





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