Module Expr Str Assign NameStore TupleLoad Str ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad FunctionDef arguments args NameParam defaults kwarg body If CompareEq AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str If CompareIs AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg body Expr Str Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Num body Assign NameStore AttributeLoad NameLoad attr Expr Call NameLoad Str AttributeLoad NameLoad attr Expr Call NameLoad Str AttributeLoad NameLoad attr Return Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Expr Call NameLoad Str AttributeLoad NameLoad attr Expr Call NameLoad Str AttributeLoad NameLoad attr Return Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad decorator_list decorator_list
N/A N/A 
Layout
======

Layouts are used to calculate and assign widget positions.

The :class:`Layout` class itself cannot be used directly.
You should use one of the following layout classes:

- Anchor layout: :class:`kivy.uix.anchorlayout.AnchorLayout`
- Box layout: :class:`kivy.uix.boxlayout.BoxLayout`
- Float layout: :class:`kivy.uix.floatlayout.FloatLayout`
- Grid layout: :class:`kivy.uix.gridlayout.GridLayout`
- Page Layout: :class:`kivy.uix.pagelayout.PageLayout`
- Relative layout: :class:`kivy.uix.relativelayout.RelativeLayout`
- Scatter layout: :class:`kivy.uix.scatterlayout.ScatterLayout`
- Stack layout: :class:`kivy.uix.stacklayout.StackLayout`


Understanding the `size_hint` Property in `Widget`
--------------------------------------------------

The :attr:`~kivy.uix.Widget.size_hint` is a tuple of values used by
layouts to manage the sizes of their children. It indicates the size
relative to the layout's size instead of an absolute size (in
pixels/points/cm/etc). The format is::

    widget.size_hint = (width_percent, height_percent)

The percent is specified as a floating point number in the range 0-1. For
example, 0.5 is 50%, 1 is 100%.

If you want a widget's width to be half of the parent's width and the
height to be identical to the parent's height, you would do::

    widget.size_hint = (0.5, 1.0)

If you don't want to use a size_hint for either the width or height, set the
value to None. For example, to make a widget that is 250px wide and 30%
of the parent's height, do::

    widget.size_hint = (None, 0.3)
    widget.width = 250

Being :class:`Kivy properties <kivy.properties>`, these can also be set via
constructor arguments::

    widget = Widget(size_hint=(None, 0.3), width=250)

.. versionchanged:: 1.4.1
    The `reposition_child` internal method (made public by mistake) has
    been removed.

 N/A __all__ N/A Layout kivy.clock Clock kivy.uix.widget Widget Layout N/A Widget N/A N/A Layout interface class, used to implement every layout. See module
    documentation for more information.
     N/A _trigger_layout None __init__ N/A N/A self N/A kwargs N/A N/A N/A N/A self __class__ Layout N/A N/A N/A Exception The Layout class is abstract and                 cannot be used directly. N/A N/A N/A self _trigger_layout None N/A N/A N/A self _trigger_layout N/A N/A Clock create_trigger N/A self do_layout -1 N/A N/A N/A N/A super Layout self __init__ kwargs N/A do_layout N/A N/A self N/A largs N/A N/A This function is called when a layout is needed by a trigger.
        If you are writing a new Layout subclass, don't call this function
        directly but use :meth:`_trigger_layout` instead.
        .. versionadded:: 1.0.8
         N/A N/A NotImplementedError Must be implemented in subclasses. N/A add_widget N/A N/A self widget index N/A 0 N/A N/A fbind N/A widget fbind N/A N/A fbind size N/A self _trigger_layout N/A N/A fbind size_hint N/A self _trigger_layout N/A N/A N/A N/A super Layout self add_widget widget index N/A remove_widget N/A N/A self widget N/A N/A N/A funbind N/A widget funbind N/A N/A funbind size N/A self _trigger_layout N/A N/A funbind size_hint N/A self _trigger_layout N/A N/A N/A N/A super Layout self remove_widget widget N/A N/A