WrapPolicy#

Added in version 1.7.

class WrapPolicy#

Describes line wrapping behavior in a WrapLayout or WrapBox.

See wrap_policy and wrap_policy.

Fields#

class WrapPolicy
MINIMUM#

Fit as many children into each line as possible, shrinking them down to their minimum size before wrapping to the next line.

NATURAL#

Wrap to the next line as soon as the previous line cannot fit any more children without shrinking them past their natural size.