Place#
The place geometry manager positions a widget by absolute or relative coordinates. This page is the method spec; Arranging widgets teaches when to reach for place.
In ttkbootstrap place (and place_configure) return the widget, so
construction and placement can be chained.
The canonical upstream reference is the Tk place manual page (Tcl 8.6).
Options#
Every option below is a keyword argument to place().
Option |
Type |
Description |
|---|---|---|
xy |
|
The anchor point’s position, in pixels from the parent’s top-left corner. |
relxrely |
|
The anchor point’s position as a fraction of the parent’s size,
|
widthheight |
|
The widget’s size, in pixels. |
relwidthrelheight |
|
The widget’s size as a fraction of the parent’s size, |
|
|
Which point of the widget is placed at the given position:
|
|
|
Whether coordinates are measured |
|
|
Place relative to a container other than the parent. Rarely needed. |
Methods#
- place(**options)
Position the widget by coordinates, using the options above. Alias:
place_configure.- Returns:
the widget (ttkbootstrap), for chaining.
- place_forget()
Unmap the widget.
- Returns:
None.
- place_info()
Return the widget’s current place options.
- Return type:
- place_slaves()
Return the widgets this container manages with place. Call on the parent.
- Return type: