Re: [pygtk] shrink window to minimum size when some child widgets are hidden
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 http://www.solfege.org/ GNU Solfege - free ear traininghttp://www.gnu.org/software/solfege/ ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/
Re: [pygtk] shrink window to minimum size when some child widgets are hidden
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: > 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, but had no luck so far. >> Does anybody know how to behave to have the window to shrink to minimum >> size given the actual displayed widgets? >> >> >> ___ >> pygtk mailing list pygtk@daa.com.au >> http://www.daa.com.au/mailman/listinfo/pygtk >> Read the PyGTK FAQ: http://faq.pygtk.org/ >> > > > > -- > Tom Cato Amundsen http://www.solfege.org/ > GNU Solfege - free ear traininghttp://www.gnu.org/software/solfege/ > > ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/
Re: [pygtk] shrink window to minimum size when some child widgets are hidden
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, but had no luck so far. > Does anybody know how to behave to have the window to shrink to minimum > size given the actual displayed widgets? > > > ___ > pygtk mailing list pygtk@daa.com.au > http://www.daa.com.au/mailman/listinfo/pygtk > Read the PyGTK FAQ: http://faq.pygtk.org/ > -- Tom Cato Amundsen http://www.solfege.org/ GNU Solfege - free ear traininghttp://www.gnu.org/software/solfege/ ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/
[pygtk] shrink window to minimum size when some child widgets are hidden
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 to minimum size given the actual displayed widgets? ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/