Abstract layout: layout base for implementation

Abstract layout: layout base for implementation

class pymt.ui.widgets.layout.abstractlayout.MTAbstractLayout(**kwargs)

Bases: pymt.ui.widgets.widget.MTWidget

Abstract layout. Base class used to implement layout.

Property :
auto_layout : bool, default to True

Do layout when appropriate

animation_type : str, default to None

Specifies the easing function for animating the layout when it changes. Default is ‘None’, in which case no animation is performed at all. Any name of a valid AnuimationAlpha function can be used to turn on animation.

animation_time : int, default to 1

specifies the duration of the animations created when changing the layout (if any).

Events :
on_layout

Fired when layout function have been called

minimum_size

returns minimum size of layout (based on size of fixed/minimum size of children)

Previous topic

Layout: arrange widget in a layout

Next topic

Anchor layout: Align child widget to a border or center.

This Page