Re: [GtkGLExt] problem with GTK.TreeView and GLArea



Hi,

On 04.4.21 5:26 PM, "Toon Verstraelen" <Toon Verstraelen UGent be> wrote:

> Hi,
> 
> I've been playing a bit with teapot2.py from the pygtkglext examples. The
> program teapot4.py attached here illustrates a problem I also encounterd with
> a 
> larger app I'm developping with pygtkglext. Just run it:
> 
> python teapot4.py
> 
> and click on the "add items" button". When starting the application I get four
> error messages:
> 
> (teapot4.py:5097): Gdk-CRITICAL **: file gdkwindow-x11.c: line 1950
> (gdk_window_set_geometry_hints): assertion `window != NULL' failed
> 
> (teapot4.py:5097): Gdk-CRITICAL **: file gdkwindow-x11.c: line 1331
> (gdk_window_resize): assertion `window != NULL' failed
> 
> (teapot4.py:5097): Gdk-CRITICAL **: file gdkwindow-x11.c: line 1950
> (gdk_window_set_geometry_hints): assertion `window != NULL' failed
> 
> (teapot4.py:5097): Gdk-CRITICAL **: file gdkwindow-x11.c: line 1331
> (gdk_window_resize): assertion `window != NULL' failed
> 
> After clicking the button the window resizes unexpectedly and a part of the
> window is not used. When I comment out these lines from the example:
> 
>                 if sys.platform != 'win32':
>                         self.set_resize_mode(gtk.RESIZE_IMMEDIATE)
> 
> all the problems dissapear, but I don't understand why. (These lines are also
> used in teapot2.py) What should these lines do? When I remove them, everything
> works fine.

If you are using the latest version of GtkGLExt, set_resize_mode() call is
no longer needed. It was used to prevent a problem which occurs on resizing
OpenGL window on X Window System. This problem has been solved with
GtkGLExt >= 1.0.5.

Regards,
--Naofumi




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