Re: [pygtk] shrink window to minimum size when some child widgets are hidden

2012-05-20 Thread Giuseppe Penone
No, this is already the default behaviour. I found the best solution (so far) is to call window.resize(1,1) after hiding widgets that require the window to shrink. This way the window will be shrunk to minimum. Cheers, Giuseppe. On Sun, May 20, 2012 at 6:51 PM, Tom Cato Amundsen wrote: > gt

Re: [pygtk] shrink window to minimum size when some child widgets are hidden

2012-05-20 Thread Tom Cato Amundsen
gtk.Window.set_resizable(True) ??? Tom Cato 2012/5/20 Giuseppe Penone > Hi, > It happens to me many times that after hiding some widgets in the window, > the window keeps the original size > leaving part of the window with just window background (gray) visible. > I'm searching for a solution, b

[pygtk] shrink window to minimum size when some child widgets are hidden

2012-05-20 Thread Giuseppe Penone
Hi, It happens to me many times that after hiding some widgets in the window, the window keeps the original size leaving part of the window with just window background (gray) visible. I'm searching for a solution, but had no luck so far. Does anybody know how to behave to have the window to shrink