TTkLayoutπΆοΈ
- class TTkLayout(**kwargs)[source]πΆοΈ
Bases:
TTkLayoutItemTheTTkLayoutclass is the base class of geometry managers. <br/>It allows free placement of the widgets in the layout area. <br/>Used mainly to have free range movingTTkWindowbecause the widgets are not automatically rearranged after a layout eventββββββββββββββββββββββββββββββ β pos(4,2) β β βββββββββ pos(16,4) β β βWidget1β βββββββββββ β β β β β Widget2 β β β β β βββββββββββ β β β β β β βββββββββ β β β ββββββββββββββββββββββββββββββ
MethodsπΆοΈ
- addWidget(widget)[source]πΆοΈ
Add a widget to this Layout
- Parameters:
widget (
TTkWidgets) β the widget to be added
- addWidgets(widgets)[source]πΆοΈ
Add a list of widgets to this Layout
- Parameters:
widgets (list of
TTkWidgets) β the widget to be added
- iterWidgets(onlyVisible: bool = True, recurse: bool = True, reverse: bool = False) Generator[TTkWidget, None, None][source]πΆοΈ
Iterate over all widgets in the layout.
- Parameters:
onlyVisible (bool) β if True, only yield visible widgets
recurse (bool) β if True, recursively iterate through nested layouts
reverse (bool) β if True, iterate in reverse order
- Returns:
generator yielding widgets
- Return type:
Generator[
TTkWidget, None, None]
- removeWidget(widget)[source]πΆοΈ
Remove a widget from this Layout
- Parameters:
widget (
TTkWidgets) β the widget to be removed
TTkLayout AttributesπΆοΈ
|
|
|
|
|
|
|
|
|
|
|