pythonware.com | products ::: library ::: search ::: daily Python-URL! |
Window Geometry MethodsWindow Geometry Methodsgeometrygeometry(). Returns a string describing self's "geometry". The string has the following format: "%dx%d%+d%+d" % (width, height, xoffset, yoffset) where all coordinates are given in pixels. geometrygeometry(geometry). Change the geometry for self. The string format is as described above. aspectaspect(minNumer, minDenom, maxNumer, maxDenom), aspect(). Control the aspect ratio (the relation between width and height) of this window. The aspect ratio is constrained to lie between minNumer/minDenom and maxNumer/maxDenom. If no arguments are given, this method returns the current constraints as a 4-tuple, if any. maxsizemaxsize(width, height), maxsize(). Set (get) the maximum size for this window. minsizeminsize(width, height), minsize(). Set (get) the minimum size for this window. resizableresizable(width, height), resizable(). Set (get) the resize flags. The width flag controls whether the window can be resized horizontally by the user. The height flag controls whether the window can be resized vertically. |