set_geometry_hints max_width/max_height not honoured on win32



Here is the code:

import gtk
x=gtk.Window()
x.set_geometry_hints(max_width=600, max_height=400)
x.show()
gtk.main()

This works as expected on Linux (bar any window manager overrides you
may have), but it does not do anything at all on win32. One can resize
the window beyond the maximum dimensions specified, though the maximize
button is greyed out.
How can I get the max dimensions to be honoured on win32?

Thanks
Antoine

PS: using latest pygtk2 all-in-one installer on win32.


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