PyDocs

Nav

Graphical user interfaces with Tk

Wm.wm_geometry

tkinter

method of Wm
  • Wm.wm_geometry(newGeometry=None)
Set or query the geometry of the window. newGeometry has the form =widthxheight+x+y, where any of =, widthxheight and the +x+y position may be omitted. width and height are in pixels (or grid units for a gridded window); a position preceded by + is measured from the left or top edge of the screen and one preceded by - from the right or bottom edge. An offset can be negative, as in '200x100+-9+-8', when the window edge is positioned beyond the corresponding screen edge. An empty string cancels any user-specified geometry, letting the window revert to its natural size. With no argument, return the current geometry as a string of the form '200x200+10+10'. wm_geometry() is an alias of geometry().
0 Examples
No examples for tkinter/Wm.wm_geometry.
See Also
No see-alsos for tkinter/Wm.wm_geometry
0 Notes
No notes for Wm.wm_geometry