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

2012-05-28 Thread Tom Cato Amundsen
My fault, I meant set_resizeable(False). Doesn't this make the windows shrink when you hide widgets? In Solfege I always get the windows as small as possible when set_resizeable(False) is called. -- Tom Cato Amundsen t...@gnu.org http://www.solfege.org/ GNU Solfege - free ear

[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

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 t...@gnu.org