[Tkinter-discuss] setting a minsize for gridded windows

Mark Summerfield list at qtrac.plus.com
Fri Jun 29 10:27:34 CEST 2012


Hi Michael,

On Thu, 28 Jun 2012 18:55:40 +0200
Michael Lange <klappnase at web.de> wrote:
> Hi Mark,
> 
> Thus spoketh Mark Summerfield <list at qtrac.plus.com> 
> unto us on Thu, 28 Jun 2012 14:41:12 +0100:
> 
[snip]
> So you should be able to check the window's "grid state" easily with
> wm_grid(), if it's None, the window is not gridded:
> 
> >>> root = Tk()
> >>> print root.wm_grid()
> None
> >>> print root.wm_grid(100, 100, 10, 10)
> None
> >>> print root.wm_grid()
> (100, 100, 10, 10)

That worked great---thanks!

-- 
Mark Summerfield, Qtrac Ltd, www.qtrac.eu
    C++, Python, Qt, PyQt - training and consultancy
        "Rapid GUI Programming with Python and Qt" - ISBN 0132354187
            http://www.qtrac.eu/pyqtbook.html


More information about the Tkinter-discuss mailing list