tkmilan.autolayout#

Auto Layout capabilities.

Functions

do(layout_input, amount)

gnested(nlayout)

Calculate the current and next layout, for nested widgets.

parse_amount(value)

tkmilan.autolayout.gnested(nlayout: str | Sequence[str]) Tuple[str, str | Sequence[str]]#

Calculate the current and next layout, for nested widgets.

Parameters:

nlayout (str | Sequence[str]) – The current layout.

Returns:

A tuple of this_layout (the current layout), and next_layout (the next layout level). next_layout is the input for this function on the next level.

Return type:

Tuple[str, str | Sequence[str]]