Name

place

Synopsis

                        w.place(**place_options)

Delegates geometry management to the placer. place_options may include:

anchor

The exact spot of w other options refer to: may be N, E, S, W, NE, NW, SE, or SW, compass directions indicating the corners and sides of w; default is NW (the upper left corner of w)

bordermode

INSIDE (the default) to indicate that other options refer to the parent’s inside (ignoring the parent’s border); OUTSIDE otherwise

height, width

Height and width in pixels

relheight, relwidth

Height and width as a float between 0.0 and 1.0, as a fraction of the height and width of the parent widget

relx, rely

Horizontal and vertical offset as a float between 0.0 and 1.0, as a fraction of the height and width of the parent widget

x, y

Horizontal and vertical offset in pixels

Get Python in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.