- (tk/wm 'geometry #<widget> ?newGeometry?)
- If newGeometry is specified, then the geometry of #<widget> is changed and an empty string is returned. Otherwise the current geometry for #<widget> is returned (this is the most recent geometry specified either by manual resizing or in a tk/wm geometry command). NewGeometry has the form =widthxheight±x±y, where any of =, widthxheight, or ±x±y may be omitted. Width and height are positive integers specifying the desired dimensions of #<widget>. If #<widget> is gridded (see GRIDDED GEOMETRY MANAGEMENT below) then the dimensions are specified in grid units; otherwise they are specified in pixel units. X and y specify the desired location of #<widget> on the screen, in pixels. If x is preceded by +, it specifies the number of pixels between the left edge of the screen and the left edge of #<widget>'s border; if preceded by - then x specifies the number of pixels between the right edge of the screen and the right edge of #<widget>'s border. If y is preceded by + then it specifies the number of pixels between the top of the screen and the top of #<widget>'s border; if y is preceded by - then it specifies the number of pixels between the bottom of #<widget>'s border and the bottom of the screen. If newGeometry is specified as an empty string then any existing user-specified geometry for #<widget> is cancelled, and the #<widget> will revert to the size requested internally by its widgets.
© Author
| Home
| Sitemap
|