Fill - It determines if the widget keeps the minimal space needed or takes up any extra space allocated to it. Attributes: NONE (default), X (fill horizontally), Y (fill vertically), or BOTH (fill both horizontally and vertically).
Expand - When it set to YES, the widget expands to fill any space not used in widget's parent.
Attributes: YES, NO.
Side - Determines which side of the widget's parent it packs to.
Attributes - TOP (default), BOTTOM, LEFT, or RIGHT.
Example-
Width - It specify the width of a widget in pixels.
Relheight- Height as a float between 0.0 and 1.0, as a fraction of the height of the parent widget.
Relwidth- Width as a float between 0.0 and 1.0, as a fraction of the width of the parent widget.
Relx-Horizontal offset as a float between 0.0 and 1.0, as a fraction of the width of the parent widget.
Rely-Vertical offset as a float between 0.0 and 1.0, as a fraction of the height of the parent widget.
X- Horizontal offset in pixels.
Y-Vertical offset in pixels.
Example-
output:
Name | Views | Likes |
---|---|---|
Mini Python Project Music Player using tkinter | 147 | 0 |
Python tkinter_Geometry Manager/pack()/place() | 166 | 0 |
Python tkinter_Geometry Manager | 143 | 0 |
Python tkinter_Frame/NewWindow/Tabs | 137 | 0 |
Python tkinter_colorchooser/text/filedialog/menubar Widgets | 142 | 1 |
Python tkinter_messagebox | 131 | 1 |
Python tkinter_widgets | 146 | 2 |
Python tkinter | 273 | 1 |
Comments