StackView

class pyto_ui.StackView

A view that arranges its children in a horizontal or vertical line.

This is a base class for HorizontalStackView and VerticalStackView. You should use one of them instead of StackView.

add_spacer()

Adds a flexible space.

insert_spacer(index: int)

Inserts a flexible space at the given index.

Parameters:

index – The index where the view should be inserted.

insert_spacer_after(after_view)

Inserts a flexible space at the given index.

Parameters:

after_view – The view placed before the spacer.

insert_spacer_before(before_view)

Inserts a flexible space at the given index.

Parameters:

before_view – The view placed after the spacer.