Table Of Contents
Stack Layout¶

New in version 1.0.5.
StackLayout arranges children vertically or horizontally, as many as the layout can fit.
- class kivy.uix.stacklayout.StackLayout(**kwargs)¶
Bases: kivy.uix.layout.Layout
Stack layout class. See module documentation for more information.
- minimum_height¶
Minimum height needed to contain all children.
New in version 1.0.8.
minimum_height is a kivy.properties.NumericProperty, default to 0.
- minimum_size¶
Minimum size needed to contain all children.
New in version 1.0.8.
minimum_size is a ReferenceListProperty of (minimum_width, minimum_height) properties.
- minimum_width¶
Minimum width needed to contain all children.
New in version 1.0.8.
minimum_width is a kivy.properties.NumericProperty, default to 0.
- orientation¶
Orientation of the layout.
orientation is an OptionProperty, default to ‘lr-tb’.
Valid orientations are: ‘lr-tb’, ‘tb-lr’, ‘rl-tb’, ‘tb-rl’, ‘lr-bt’, ‘bt-lr’, ‘rl-bt’, ‘bt-rl’
Changed in version 1.5.0.
Note
lr mean Left to Right. rl mean Right to Left. tb mean Top to Bottom. bt mean Bottom to Top.
- padding¶
Padding between layout box and children: [padding_left, padding_top, padding_right, padding_bottom].
padding also accepts a two argument form [padding_horizontal, padding_vertical] and a one argument form [padding].
Changed in version 1.7.0.
Replaced NumericProperty with VariableListProperty.
padding is a VariableListProperty, default to [0, 0, 0, 0].
- spacing¶
Spacing between children: [spacing_horizontal, spacing_vertical].
spacing also accepts a one argument form [spacing].
spacing is a VariableListProperty, default to [0, 0].