Module Expr Str Assign NameStore TupleLoad Str Str Str Str Str Str Str ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias alias alias alias alias ClassDef bases NameLoad body Expr Str Pass decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Call NameLoad NameLoad keyword NameLoad Expr Str FunctionDef arguments args NameParam NameParam defaults body If CompareEq AttributeLoad NameLoad attr Str body For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str NameLoad Return orelse Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg body If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults Num body Assign AttributeStore NameLoad attr NameLoad If UnaryOpNot AttributeLoad NameLoad attr body Return Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr If CompareEq AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad If UnaryOpNot AttributeLoad NameLoad attr body Return Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr If CompareEq AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Call NameLoad NameLoad Expr Str decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Call NameLoad ListLoad Num Num Num Num Expr Str Assign NameStore Call NameLoad Str Expr Str decorator_list ClassDef bases NameLoad body Expr Str Pass decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Call NameLoad ListLoad Num Num Num Num Expr Str Assign NameStore Call NameLoad ListLoad Num Num Num Num Expr Str Assign NameStore Call NameLoad Str Expr Str Assign NameStore Call NameLoad Str Expr Str Assign NameStore Call NameLoad Str Expr Str Assign NameStore Call NameLoad ListLoad Num Num Num Num Expr Str Assign NameStore Call NameLoad NameLoad FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list Assign NameStore Call NameLoad NameLoad NameLoad keyword TupleLoad Str Expr Str Assign NameStore Call NameLoad Str keyword TupleLoad Str Str Str Str Str Str Str Str Str Str Str Str Expr Str Assign NameStore Call NameLoad Str Expr Str Assign NameStore Call NameLoad Str keyword NameLoad Expr Str Assign NameStore Call NameLoad NameLoad Expr Str Assign NameStore Call NameLoad Str Expr Str Assign NameStore Call NameLoad NameLoad Expr Str FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body Return AttributeLoad AttributeLoad NameLoad attr attr Return Num decorator_list Assign NameStore Call NameLoad NameLoad NameLoad Expr Str Assign NameStore Call NameLoad NameLoad Expr Str Assign NameStore Call NameLoad NameLoad keyword NameLoad FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body If UnaryOpNot Call NameLoad AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str If CompareEq AttributeLoad NameLoad attr NameLoad body Return Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Str decorator_list Assign NameStore Call NameLoad NameLoad NameLoad keyword TupleLoad Str Expr Str FunctionDef arguments args NameParam defaults body Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults vararg body Assign AttributeStore AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Num decorator_list Assign NameStore Call NameLoad NameLoad NameLoad Expr Str FunctionDef arguments args NameParam defaults kwarg body Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr Call NameLoad keyword Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Call NameLoad keyword NameLoad keyword Num keyword Num keyword TupleLoad NameLoad NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr AttributeStore NameLoad attr AttributeStore NameLoad attr Call NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Return Assign NameStore AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg body Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Num body Assign NameStore AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Return Assign NameStore AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad If CompareIn NameLoad TupleLoad NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad orelse If Call NameLoad NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr BinOpMod Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr orelse Assign AttributeStore NameLoad attr Dict Str Str Num Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Return If CompareIn NameLoad TupleLoad NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad orelse If Call NameLoad NameLoad NameLoad body If UnaryOpNot BoolOpAnd AttributeLoad NameLoad attr CompareIs NameLoad AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr AugAssignSub AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad If BoolOpAnd CompareEq AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr BinOpAdd Str Str orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If CompareIn NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults kwarg body Assign NameStore AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Return If Call AttributeLoad NameLoad attr Str NameLoad body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If UnaryOpNot AttributeLoad NameLoad attr body Return Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If UnaryOpNot AttributeLoad NameLoad attr body Return Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If UnaryOpNot NameLoad body Assign NameStore AttributeLoad NameLoad attr If CompareIn NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr orelse Assign AttributeStore AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults vararg body Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults vararg body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults vararg body Assign AttributeStore AttributeLoad NameLoad attr attr AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults vararg body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body If CompareIn AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str If CompareNotEq NameLoad NameLoad body Assign AttributeStore NameLoad attr AttributeStore NameLoad attr AttributeStore NameLoad attr Call NameLoad Assign NameStore AttributeLoad NameLoad attr If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr BinOpMod Str AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr IfExp AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr If CompareNotIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr orelse Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg body Assign NameStore BinOpSub Call NameLoad AttributeLoad NameLoad attr Num If CompareGt NameLoad Num body Assign AttributeStore NameLoad attr NameStore AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults vararg body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults vararg body Assign NameStore AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Return Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword TupleLoad NameLoad Num Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr TupleLoad Num Num Assign NameStore AttributeLoad NameLoad attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore ListLoad Assign NameStore ListLoad Assign NameStore SubscriptLoad NameLoad Index Num If BoolOpOr CompareEq NameLoad Str CompareEq NameLoad Str body Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr TupleLoad Num NameLoad Assign AttributeStore NameLoad attr BinOpAdd BinOpAdd BinOpAdd NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num Call NameLoad Num Expr Call NameLoad NameLoad If CompareEq NameLoad Str body If CompareEq NameLoad Str body Assign NameStore TupleLoad Call NameLoad NameLoad Call NameLoad Assign NameStore TupleLoad NameLoad NameLoad orelse If CompareEq NameLoad Str body Assign NameStore TupleLoad NameLoad Call NameLoad Call NameLoad orelse If CompareEq NameLoad Str body Assign NameStore TupleLoad Call NameLoad Call NameLoad NameLoad Assign NameStore TupleLoad NameLoad NameLoad orelse If CompareEq NameLoad Str body Assign NameStore TupleLoad Call NameLoad NameLoad Call NameLoad orelse If CompareEq NameLoad Str body Assign NameStore TupleLoad NameLoad Call NameLoad Call NameLoad orelse If CompareEq NameLoad Str body Assign NameStore TupleLoad Call NameLoad Call NameLoad NameLoad Assign NameStore TupleLoad NameLoad NameLoad orelse If BoolOpOr CompareEq NameLoad Str CompareEq NameLoad Str body Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr TupleLoad NameLoad Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call NameLoad NameLoad Assign NameStore IfExp CompareEq SubscriptLoad NameLoad Index Num Str Num Num Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword TupleLoad NameLoad NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad If CompareEq SubscriptLoad NameLoad Slice BinOpSub NameLoad Num Str body Expr Call AttributeLoad NameLoad attr keyword Call NameLoad AttributeLoad NameLoad attr NameLoad Str NameLoad Assign NameStore TupleLoad NameLoad orelse If CompareEq SubscriptLoad NameLoad Slice BinOpSub NameLoad Num Str body Expr Call AttributeLoad NameLoad attr keyword Call NameLoad AttributeLoad NameLoad attr NameLoad Str AttributeLoad NameLoad attr Assign NameStore TupleLoad Call NameLoad NameLoad Call NameLoad orelse If CompareEq SubscriptLoad NameLoad Slice BinOpSub NameLoad Num Str body Assign NameStore TupleLoad Call NameLoad Call NameLoad NameLoad If CompareEq NameLoad Str body Assign NameStore TupleLoad NameLoad NameLoad orelse Assign NameStore TupleLoad NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr For NameStore NameLoad body Expr Call NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr For NameStore NameLoad body Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg body If AttributeLoad NameLoad attr body For NameStore AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Num Assign NameStore BinOpMult AttributeLoad NameLoad attr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr orelse Assign NameStore Num For NameStore AttributeLoad NameLoad attr body If AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Num AugAssignAdd NameStore Num orelse AugAssignAdd NameStore AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults vararg body Assign TupleStore NameStore NameStore NameStore NameStore NameStore NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults vararg body If CompareEq SubscriptLoad NameLoad Index Num Str body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr orelse Assign AttributeStore NameLoad attr BinOpSub AttributeLoad NameLoad attr BinOpDiv BinOpSub AttributeLoad NameLoad attr NameLoad Num decorator_list FunctionDef arguments args NameParam NameParam defaults vararg body Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr If BoolOpOr CompareEq SubscriptLoad NameLoad Index Num Str CompareEq SubscriptLoad NameLoad Index Num Str body Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AugAssignAdd AttributeStore NameLoad attr Num AugAssignSub AttributeStore NameLoad attr Num orelse Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr TupleLoad Num Num decorator_list decorator_list
N/A N/A 
TabbedPanel
===========

.. image:: images/tabbed_panel.jpg
    :align: right

.. versionadded:: 1.3.0


The `TabbedPanel` widget manages different widgets in tabs, with a header area
for the actual tab buttons and a content area for showing the current tab
content.

The :class:`TabbedPanel` provides one default tab.

Simple example
--------------

.. include:: ../../examples/widgets/tabbedpanel.py
    :literal:

.. note::

    A new class :class:`TabbedPanelItem` has been introduced in 1.5.0 for
    convenience. So now one can simply add a :class:`TabbedPanelItem` to a
    :class:`TabbedPanel` and `content` to the :class:`TabbedPanelItem`
    as in the example provided above.

Customize the Tabbed Panel
--------------------------

You can choose the position in which the tabs are displayed::

    tab_pos = 'top_mid'

An individual tab is called a TabbedPanelHeader. It is a special button
containing a `content` property. You add the TabbedPanelHeader first, and set
its `content` property separately::

    tp = TabbedPanel()
    th = TabbedPanelHeader(text='Tab2')
    tp.add_widget(th)

An individual tab, represented by a TabbedPanelHeader, needs its content set.
This content can be any widget. It could be a layout with a deep
hierarchy of widgets, or it could be an individual widget, such as a label or a
button::

    th.content = your_content_instance

There is one "shared" main content area active at any given time, for all
the tabs. Your app is responsible for adding the content of individual tabs
and for managing them, but it's not responsible for content switching. The
tabbed panel handles switching of the main content object as per user action.

There is a default tab added when the tabbed panel is instantiated.
Tabs that you add individually as above, are added in addition to the default
tab. Thus, depending on your needs and design, you will want to customize the
default tab::

    tp.default_tab_text = 'Something Specific To Your Use'


The default tab machinery requires special consideration and management.
Accordingly, an `on_default_tab` event is provided for associating a callback::

    tp.bind(default_tab = my_default_tab_callback)

It's important to note that by default, :attr:`default_tab_cls` is of type
:class:`TabbedPanelHeader` and thus has the same properties as other tabs.

Since 1.5.0, it is now possible to disable the creation of the
:attr:`default_tab` by setting :attr:`do_default_tab` to False.

Tabs and content can be removed in several ways::

    tp.remove_widget(widget/tabbed_panel_header)
    or
    tp.clear_widgets() # to clear all the widgets in the content area
    or
    tp.clear_tabs() # to remove the TabbedPanelHeaders

To access the children of the tabbed panel, use content.children::

    tp.content.children

To access the list of tabs::

    tp.tab_list

To change the appearance of the main tabbed panel content::

    background_color = (1, 0, 0, .5) #50% translucent red
    border = [0, 0, 0, 0]
    background_image = 'path/to/background/image'

To change the background of a individual tab, use these two properties::

    tab_header_instance.background_normal = 'path/to/tab_head/img'
    tab_header_instance.background_down = 'path/to/tab_head/img_pressed'

A TabbedPanelStrip contains the individual tab headers. To change the
appearance of this tab strip, override the canvas of TabbedPanelStrip.
For example, in the kv language::

    <TabbedPanelStrip>
        canvas:
            Color:
                rgba: (0, 1, 0, 1) # green
            Rectangle:
                size: self.size
                pos: self.pos

By default the tabbed panel strip takes its background image and color from the
tabbed panel's background_image and background_color.

 N/A __all__ N/A StripLayout TabbedPanel TabbedPanelContent TabbedPanelHeader TabbedPanelItem TabbedPanelStrip TabbedPanelException functools partial kivy.clock Clock kivy.compat string_types kivy.factory Factory kivy.uix.togglebutton ToggleButton kivy.uix.widget Widget kivy.uix.scatter Scatter kivy.uix.scrollview ScrollView kivy.uix.gridlayout GridLayout kivy.uix.floatlayout FloatLayout kivy.logger Logger kivy.metrics dp kivy.properties ObjectProperty StringProperty OptionProperty ListProperty NumericProperty AliasProperty BooleanProperty TabbedPanelException N/A Exception N/A N/A The TabbedPanelException class.
     N/A N/A TabbedPanelHeader N/A ToggleButton N/A N/A A Base for implementing a Tabbed Panel Head. A button intended to be
    used as a Heading/Tab for a TabbedPanel widget.

    You can use this TabbedPanelHeader widget to add a new tab to a
    TabbedPanel.
     N/A content N/A ObjectProperty None allownone True N/A Content to be loaded when this tab header is selected.

    :attr:`content` is an :class:`~kivy.properties.ObjectProperty` and defaults
    to None.
     on_touch_down N/A N/A self touch N/A N/A N/A N/A N/A self state down N/A N/A child N/A self children N/A N/A N/A N/A child dispatch on_touch_down touch N/A N/A N/A N/A N/A N/A super TabbedPanelHeader self on_touch_down touch N/A on_release N/A N/A self N/A largs N/A N/A N/A self parent N/A N/A N/A N/A N/A N/A self parent tabbed_panel switch_to self N/A N/A N/A N/A N/A self panel switch_to N/A N/A self panel current_tab N/A N/A TabbedPanelItem N/A TabbedPanelHeader N/A N/A This is a convenience class that provides a header of type
    TabbedPanelHeader and links it with the content automatically. Thus
    facilitating you to simply do the following in kv language::

        <TabbedPanel>:
            ...other settings
            TabbedPanelItem:
                BoxLayout:
                    Label:
                        text: 'Second tab content area'
                    Button:
                        text: 'Button that does nothing'

    .. versionadded:: 1.5.0
     add_widget N/A N/A self widget index N/A 0 N/A N/A N/A self content widget N/A N/A N/A self parent N/A N/A N/A panel N/A N/A self parent tabbed_panel N/A N/A N/A panel current_tab self N/A N/A N/A N/A panel switch_to self N/A remove_widget N/A N/A self widget N/A N/A N/A N/A self content None N/A N/A N/A self parent N/A N/A N/A panel N/A N/A self parent tabbed_panel N/A N/A N/A panel current_tab self N/A N/A N/A N/A panel remove_widget widget N/A N/A TabbedPanelStrip N/A GridLayout N/A N/A A strip intended to be used as background for Heading/Tab.
    This does not cover the blank areas in case the tabs don't cover
    the entire width/height of the TabbedPanel(use StripLayout for that).
     N/A tabbed_panel N/A ObjectProperty None N/A Link to the panel that the tab strip is a part of.

    :attr:`tabbed_panel` is an :class:`~kivy.properties.ObjectProperty` and
    defaults to None .
     N/A StripLayout N/A GridLayout N/A N/A  The main layout that is used to house the entire tabbedpanel strip
    including the blank areas in case the tabs don't cover the entire
    width/height.

    .. versionadded:: 1.8.0

     N/A border N/A ListProperty N/A 4 4 4 4 N/A Border property for the :attr:`background_image`.

    :attr:`border` is a :class:`~kivy.properties.ListProperty` and defaults
    to [4, 4, 4, 4]
     N/A background_image N/A StringProperty atlas://data/images/defaulttheme/action_view N/A Background image to be used for the Strip layout of the TabbedPanel.

    :attr:`background_image` is a :class:`~kivy.properties.StringProperty` and
     defaults to a transparent image.
     N/A TabbedPanelContent N/A FloatLayout N/A N/A The TabbedPanelContent class.
     N/A N/A TabbedPanel N/A GridLayout N/A N/A The TabbedPanel class. See module documentation for more information.
     N/A background_color N/A ListProperty N/A 1 1 1 1 N/A Background color, in the format (r, g, b, a).

    :attr:`background_color` is a :class:`~kivy.properties.ListProperty` and
    defaults to [1, 1, 1, 1].
     N/A border N/A ListProperty N/A 16 16 16 16 N/A Border used for :class:`~kivy.graphics.vertex_instructions.BorderImage`
    graphics instruction, used itself for :attr:`background_image`.
    Can be changed for a custom background.

    It must be a list of four values: (top, right, bottom, left). Read the
    BorderImage instructions for more information.

    :attr:`border` is a :class:`~kivy.properties.ListProperty` and
    defaults to (16, 16, 16, 16)
     N/A background_image N/A StringProperty atlas://data/images/defaulttheme/tab N/A Background image of the main shared content object.

    :attr:`background_image` is a :class:`~kivy.properties.StringProperty` and
    defaults to 'atlas://data/images/defaulttheme/tab'.
     N/A background_disabled_image N/A StringProperty atlas://data/images/defaulttheme/tab_disabled N/A Background image of the main shared content object when disabled.

    .. versionadded:: 1.8.0

    :attr:`background_disabled_image` is a
    :class:`~kivy.properties.StringProperty` and defaults to
    'atlas://data/images/defaulttheme/tab'.
     N/A strip_image N/A StringProperty atlas://data/images/defaulttheme/action_view N/A Background image of the tabbed strip.

    .. versionadded:: 1.8.0

    :attr:`strip_image` is a :class:`~kivy.properties.StringProperty`
    and defaults to a empty image.
     N/A strip_border N/A ListProperty N/A 4 4 4 4 N/A Border to be used on :attr:`strip_image`.

    .. versionadded:: 1.8.0

    :attr:`strip_border` is a :class:`~kivy.properties.ListProperty` and
    defaults to [4, 4, 4, 4].
     N/A _current_tab N/A ObjectProperty None get_current_tab N/A N/A self N/A N/A N/A N/A self _current_tab N/A N/A current_tab N/A AliasProperty get_current_tab None bind N/A _current_tab N/A Links to the currently selected or active tab.

    .. versionadded:: 1.4.0

    :attr:`current_tab` is an :class:`~kivy.AliasProperty`, read-only.
     N/A tab_pos N/A OptionProperty top_left options N/A left_top left_mid left_bottom top_left top_mid top_right right_top right_mid right_bottom bottom_left bottom_mid bottom_right N/A Specifies the position of the tabs relative to the content.
    Can be one of: `left_top`, `left_mid`, `left_bottom`, `top_left`,
    `top_mid`, `top_right`, `right_top`, `right_mid`, `right_bottom`,
    `bottom_left`, `bottom_mid`, `bottom_right`.

    :attr:`tab_pos` is an :class:`~kivy.properties.OptionProperty` and
    defaults to 'top_left'.
     N/A tab_height N/A NumericProperty 40dp N/A Specifies the height of the tab header.

    :attr:`tab_height` is a :class:`~kivy.properties.NumericProperty` and
    defaults to 40.
     N/A tab_width N/A NumericProperty 100dp allownone True N/A Specifies the width of the tab header.

    :attr:`tab_width` is a :class:`~kivy.properties.NumericProperty` and
    defaults to 100.
     N/A do_default_tab N/A BooleanProperty True N/A Specifies whether a default_tab head is provided.

    .. versionadded:: 1.5.0

    :attr:`do_default_tab` is a :class:`~kivy.properties.BooleanProperty` and
    defaults to 'True'.
     N/A default_tab_text N/A StringProperty Default tab N/A Specifies the text displayed on the default tab header.

    :attr:`default_tab_text` is a :class:`~kivy.properties.StringProperty` and
    defaults to 'default tab'.
     N/A default_tab_cls N/A ObjectProperty TabbedPanelHeader N/A Specifies the class to use for the styling of the default tab.

    .. versionadded:: 1.4.0

    .. warning::
        `default_tab_cls` should be subclassed from `TabbedPanelHeader`

    :attr:`default_tab_cls` is an :class:`~kivy.properties.ObjectProperty`
    and defaults to `TabbedPanelHeader`. If you set a string, the
    :class:`~kivy.factory.Factory` will be used to resolve the class.

    .. versionchanged:: 1.8.0
        The :class:`~kivy.factory.Factory` will resolve the class if a string is
        set.
     get_tab_list N/A N/A self N/A N/A N/A N/A self _tab_strip N/A N/A N/A N/A self _tab_strip children N/A 1.0 N/A N/A tab_list N/A AliasProperty get_tab_list None N/A List of all the tab headers.

    :attr:`tab_list` is an :class:`~kivy.properties.AliasProperty` and is
    read-only.
     N/A content N/A ObjectProperty None N/A This is the object holding (current_tab's content is added to this)
    the content of the current tab. To Listen to the changes in the content
    of the current tab, you should bind to current_tabs `content` property.

    :attr:`content` is an :class:`~kivy.properties.ObjectProperty` and
    defaults to 'None'.
     N/A _default_tab N/A ObjectProperty None allow_none True get_def_tab N/A N/A self N/A N/A N/A N/A self _default_tab N/A set_def_tab N/A N/A self new_tab N/A N/A N/A N/A N/A issubclass N/A new_tab __class__ TabbedPanelHeader N/A N/A N/A TabbedPanelException `default_tab_class` should be                subclassed from `TabbedPanelHeader` N/A N/A N/A self _default_tab new_tab N/A N/A N/A oltab N/A self _default_tab N/A N/A self _default_tab new_tab N/A N/A N/A self remove_widget oltab N/A N/A self _original_tab None N/A N/A N/A self switch_to new_tab N/A N/A new_tab state down N/A N/A default_tab N/A AliasProperty get_def_tab set_def_tab bind N/A _default_tab N/A Holds the default tab.

    .. Note:: For convenience, the automatically provided default tab is
              deleted when you change default_tab to something else.
              As of 1.5.0, this behaviour has been extended to every
              `default_tab` for consistency and not just the automatically
              provided one.

    :attr:`default_tab` is an :class:`~kivy.properties.AliasProperty`.
     get_def_tab_content N/A N/A self N/A N/A N/A N/A N/A self default_tab content N/A set_def_tab_content N/A N/A self N/A l N/A N/A N/A N/A self default_tab content N/A l N/A 0 N/A N/A default_tab_content N/A AliasProperty get_def_tab_content set_def_tab_content N/A Holds the default tab content.

    :attr:`default_tab_content` is an :class:`~kivy.properties.AliasProperty`.
     __init__ N/A N/A self N/A kwargs N/A N/A N/A self _childrens N/A N/A N/A self _tab_layout N/A StripLayout rows 1 N/A N/A self rows 1 N/A N/A self _tab_strip N/A TabbedPanelStrip tabbed_panel self rows 1 cols 99 size_hint N/A None None height N/A self tab_height width N/A self tab_width N/A N/A self _partial_update_scrollview None N/A N/A self content N/A TabbedPanelContent N/A N/A self _current_tab N/A self _original_tab N/A self _default_tab N/A TabbedPanelHeader N/A N/A N/A N/A super TabbedPanel self __init__ kwargs N/A N/A N/A self fbind size N/A self _reposition_tabs N/A N/A N/A self do_default_tab N/A N/A N/A N/A Clock schedule_once N/A self _switch_to_first_tab N/A N/A N/A N/A self _setup_default_tab N/A N/A N/A self switch_to N/A self default_tab N/A switch_to N/A N/A self header N/A N/A N/A Switch to a specific panel header.
         N/A header_content N/A header content N/A N/A N/A self _current_tab state normal N/A N/A header state down N/A N/A self _current_tab header N/A N/A N/A self clear_widgets N/A N/A header_content None N/A N/A N/A parent N/A header_content parent N/A parent N/A N/A N/A N/A parent remove_widget header_content N/A N/A N/A self add_widget header_content N/A clear_tabs N/A N/A self N/A l N/A N/A self_tabs N/A self _tab_strip N/A N/A N/A self_tabs clear_widgets N/A N/A self do_default_tab N/A N/A self_default_tab N/A self _default_tab N/A N/A N/A self_tabs add_widget self_default_tab N/A N/A self_tabs width N/A self_default_tab width N/A N/A N/A self _reposition_tabs N/A add_widget N/A N/A self widget index N/A 0 N/A N/A content N/A self content N/A N/A content None N/A N/A N/A parent N/A widget parent N/A parent N/A N/A N/A N/A parent remove_widget widget N/A N/A widget N/A content N/A self _tab_layout N/A N/A N/A N/A N/A super TabbedPanel self add_widget widget index N/A N/A N/A isinstance widget TabbedPanelHeader N/A N/A self_tabs N/A self _tab_strip N/A N/A N/A self_tabs add_widget widget index N/A N/A widget group N/A __tab%r__ N/A self_tabs uid N/A N/A N/A self on_tab_width N/A N/A N/A widget pos_hint N/A x top 0 1 N/A N/A N/A N/A self _childrens append widget N/A N/A content disabled N/A N/A self current_tab disabled N/A N/A N/A content add_widget widget index N/A remove_widget N/A N/A self widget N/A N/A N/A content N/A self content N/A N/A content None N/A N/A N/A N/A widget N/A content N/A self _tab_layout N/A N/A N/A N/A N/A super TabbedPanel self remove_widget widget N/A N/A N/A isinstance widget TabbedPanelHeader N/A N/A N/A N/A N/A self do_default_tab N/A widget N/A self _default_tab N/A N/A self_tabs N/A self _tab_strip N/A N/A self_tabs width N/A widget width N/A N/A N/A self_tabs remove_widget widget N/A N/A N/A N/A widget state down N/A self do_default_tab N/A N/A N/A N/A N/A self _default_tab on_release N/A N/A N/A self _reposition_tabs N/A N/A N/A N/A Logger info N/A TabbedPanel: default tab! can't be removed.
 Change `default_tab` to a different tab. N/A N/A N/A N/A N/A self _childrens pop widget None N/A N/A widget N/A content children N/A N/A N/A N/A content remove_widget widget N/A clear_widgets N/A N/A self N/A kwargs N/A N/A content N/A self content N/A N/A content None N/A N/A N/A N/A N/A kwargs get do_super False N/A N/A N/A N/A N/A super TabbedPanel self clear_widgets N/A N/A N/A N/A content clear_widgets N/A on_strip_image N/A N/A self instance value N/A N/A N/A N/A N/A self _tab_layout N/A N/A N/A N/A N/A self _tab_layout background_image value N/A on_strip_border N/A N/A self instance value N/A N/A N/A N/A N/A self _tab_layout N/A N/A N/A N/A N/A self _tab_layout border value N/A on_do_default_tab N/A N/A self instance value N/A N/A N/A N/A value N/A N/A dft N/A self default_tab N/A N/A dft N/A self tab_list N/A N/A N/A N/A self remove_widget dft N/A N/A N/A self _switch_to_first_tab N/A N/A self _default_tab N/A self _current_tab N/A N/A N/A N/A self _current_tab state normal N/A N/A N/A self _setup_default_tab N/A on_default_tab_text N/A N/A self N/A args N/A N/A N/A N/A self _default_tab text N/A self default_tab_text N/A on_tab_width N/A N/A self N/A l N/A N/A N/A N/A Clock unschedule N/A self _update_tab_width N/A N/A N/A Clock schedule_once N/A self _update_tab_width 0 N/A on_tab_height N/A N/A self N/A l N/A N/A N/A N/A self _tab_layout height N/A N/A self _tab_strip height N/A self tab_height N/A N/A N/A self _reposition_tabs N/A on_tab_pos N/A N/A self N/A l N/A N/A N/A N/A self _reposition_tabs N/A _setup_default_tab N/A N/A self N/A N/A N/A N/A N/A self _default_tab N/A self tab_list N/A N/A N/A content N/A N/A self _default_tab content N/A _tabs N/A self _tab_strip N/A cls N/A self default_tab_cls N/A N/A isinstance cls string_types N/A N/A cls N/A N/A Factory get cls N/A N/A N/A issubclass cls TabbedPanelHeader N/A N/A N/A TabbedPanelException `default_tab_class` should be                subclassed from `TabbedPanelHeader` N/A N/A cls TabbedPanelHeader N/A N/A N/A self _current_tab N/A self _original_tab N/A self _default_tab N/A cls N/A default_tab N/A self default_tab N/A N/A N/A self _original_tab N/A self default_tab N/A N/A N/A default_tab text N/A self default_tab_text N/A N/A default_tab height N/A self tab_height N/A N/A default_tab group N/A __tab%r__ N/A _tabs uid N/A N/A default_tab state down N/A N/A default_tab width N/A N/A self tab_width N/A self tab_width 100 N/A N/A default_tab content content N/A tl N/A self tab_list N/A N/A default_tab tl N/A N/A N/A N/A _tabs add_widget default_tab N/A len tl N/A N/A default_tab content N/A N/A N/A N/A self clear_widgets N/A N/A N/A self add_widget N/A N/A self default_tab content N/A N/A N/A N/A Clock schedule_once N/A self _load_default_tab_content N/A N/A self _current_tab default_tab N/A _switch_to_first_tab N/A N/A self N/A l N/A N/A ltl N/A N/A len N/A self tab_list 1 N/A N/A ltl -1 N/A N/A N/A self _current_tab dt N/A self _original_tab N/A N/A self tab_list N/A ltl N/A N/A N/A self switch_to dt N/A _load_default_tab_content N/A N/A self dt N/A N/A N/A N/A self default_tab N/A N/A N/A N/A self switch_to N/A self default_tab N/A _reposition_tabs N/A N/A self N/A l N/A N/A N/A N/A Clock unschedule N/A self _update_tabs N/A N/A N/A Clock schedule_once N/A self _update_tabs 0 N/A _update_tabs N/A N/A self N/A l N/A N/A self_content N/A self content N/A N/A self_content N/A N/A N/A tab_pos N/A self tab_pos N/A tab_layout N/A self _tab_layout N/A N/A N/A tab_layout clear_widgets N/A scrl_v N/A ScrollView size_hint N/A None 1 N/A tabs N/A self _tab_strip N/A parent N/A tabs parent N/A parent N/A N/A N/A N/A parent remove_widget tabs N/A N/A N/A scrl_v add_widget tabs N/A N/A scrl_v pos N/A 0 0 N/A self_update_scrollview N/A self _update_scrollview N/A N/A N/A self _partial_update_scrollview None N/A N/A N/A N/A tabs unbind width N/A self _partial_update_scrollview N/A N/A self _partial_update_scrollview N/A partial self_update_scrollview scrl_v N/A N/A N/A tabs bind width N/A self _partial_update_scrollview N/A N/A N/A self clear_widgets do_super True N/A tab_height N/A self tab_height N/A widget_list N/A N/A tab_list N/A N/A pos_letter N/A tab_pos N/A 0 N/A N/A N/A pos_letter b N/A pos_letter t N/A N/A N/A self cols 1 N/A N/A self rows 2 N/A N/A tab_layout rows 1 N/A N/A tab_layout cols 3 N/A N/A tab_layout size_hint N/A 1 None N/A N/A tab_layout height N/A N/A N/A tab_height N/A N/A tab_layout padding N/A 1 N/A N/A tab_layout padding N/A 3 N/A dp 2 N/A N/A self_update_scrollview scrl_v N/A N/A pos_letter b N/A N/A N/A tab_pos bottom_mid N/A N/A tab_list N/A N/A Widget scrl_v N/A Widget N/A widget_list N/A self_content tab_layout N/A N/A N/A tab_pos bottom_left N/A N/A tab_list N/A scrl_v N/A Widget N/A Widget N/A N/A N/A tab_pos bottom_right N/A N/A tab_list N/A N/A Widget N/A Widget scrl_v N/A widget_list N/A self_content tab_layout N/A N/A N/A tab_pos top_mid N/A N/A tab_list N/A N/A Widget scrl_v N/A Widget N/A N/A N/A tab_pos top_left N/A N/A tab_list N/A scrl_v N/A Widget N/A Widget N/A N/A N/A tab_pos top_right N/A N/A tab_list N/A N/A Widget N/A Widget scrl_v N/A widget_list N/A tab_layout self_content N/A N/A N/A N/A pos_letter l N/A pos_letter r N/A N/A N/A self cols 2 N/A N/A self rows 1 N/A N/A tab_layout rows 3 N/A N/A tab_layout cols 1 N/A N/A tab_layout size_hint N/A None 1 N/A N/A tab_layout width tab_height N/A N/A scrl_v height tab_height N/A N/A self_update_scrollview scrl_v N/A rotation N/A N/A N/A tab_pos N/A 0 l 90 -90 N/A sctr N/A Scatter do_translation False rotation rotation do_rotation False do_scale False size_hint N/A None None auto_bring_to_front False size N/A scrl_v size N/A N/A N/A sctr add_widget scrl_v N/A lentab_pos N/A len tab_pos N/A N/A N/A tab_pos N/A N/A lentab_pos 4 _top N/A N/A N/A N/A sctr bind pos N/A partial N/A self _update_top sctr top None N/A tab_list N/A sctr N/A N/A N/A N/A tab_pos N/A N/A lentab_pos 4 _mid N/A N/A N/A N/A sctr bind pos N/A partial N/A self _update_top sctr mid N/A scrl_v width N/A tab_list N/A N/A Widget sctr N/A Widget N/A N/A N/A N/A tab_pos N/A N/A lentab_pos 7 _bottom N/A N/A tab_list N/A N/A Widget N/A Widget sctr N/A N/A pos_letter l N/A N/A widget_list N/A tab_layout self_content N/A N/A widget_list N/A self_content tab_layout N/A add N/A tab_layout add_widget N/A widg tab_list N/A N/A N/A add widg N/A add N/A self add_widget N/A widg widget_list N/A N/A N/A add widg N/A _update_tab_width N/A N/A self N/A l N/A N/A N/A self tab_width N/A N/A tab N/A self tab_list N/A N/A N/A tab size_hint_x 1 N/A tsw N/A N/A self tab_width N/A len N/A N/A self _tab_strip children N/A N/A tsw 0 N/A tab N/A self tab_list N/A N/A N/A tab size_hint_x N/A N/A N/A tab size_hint_x 1 N/A tsw 100 N/A N/A tsw N/A tab width N/A N/A N/A self _tab_strip width tsw N/A N/A N/A self _reposition_tabs N/A _update_top N/A N/A self N/A args N/A N/A N/A sctr top scrl_v_width x y args N/A N/A N/A Clock unschedule N/A partial N/A self _updt_top sctr top scrl_v_width N/A N/A N/A Clock schedule_once N/A partial N/A self _updt_top sctr top scrl_v_width 0 N/A _updt_top N/A N/A self sctr top scrl_v_width N/A args N/A N/A N/A N/A top N/A 0 t N/A N/A N/A sctr top N/A self top N/A N/A N/A sctr top N/A N/A self top N/A N/A N/A self height scrl_v_width 2 N/A _update_scrollview N/A N/A self scrl_v N/A l N/A N/A self_tab_pos N/A self tab_pos N/A self_tabs N/A self _tab_strip N/A N/A N/A N/A self_tab_pos N/A 0 b N/A N/A self_tab_pos N/A 0 t N/A N/A N/A scrl_v width N/A min N/A self width N/A self_tabs width N/A N/A scrl_v top 1 N/A N/A scrl_v top 1 N/A N/A N/A scrl_v width N/A min N/A self height N/A self_tabs width N/A N/A self_tabs pos N/A 0 0 N/A N/A