Page
Pages allow for a separation of different features
- class kivycupertino.uix.page.CupertinoPageControls(*args: Any, **kwargs: Any)
iOS style Page Controls. Will automatically update the number of pages and current page when added to an instance of
CupertinoScreenManager
- background_color = [0, 0, 0, 0]
Background color of
CupertinoPageControls
Python
CupertinoPageControls(background_color=(1, 0, 0, 1))
KV
CupertinoPageControls: background_color: 1, 0, 0, 1
- color_selected = [1, 1, 1, 1]
A
ColorProperty
defining the color of a dot onCupertinoPageControls
when not selectedPython
CupertinoPageControls(color_selected=(1, 0, 0, 1))
KV
CupertinoPageControls: color_selected: 1, 0, 0, 1
- color_unselected = [0.2, 0.2, 0.2, 1]
Color of a dot on
CupertinoPageControls
when not selectedPython
CupertinoPageControls(color_unselected=(0.5, 0, 0, 1))
KV
CupertinoPageControls: color_unselected: 0.5, 0, 0, 1
- on_parent(instance, parent)
Callback when
CupertinoPageControls
is added toCupertinoScreenManager
- Parameters
instance – Instance of class
CupertinoPageControls
parent – Instance of
CupertinoScreenManager
- tap = False
If tapping
CupertinoPageControls
will switch to a screenPython
CupertinoPageControls(tap=True)
KV
CupertinoPageControls: tap: True
- class kivycupertino.uix.page.CupertinoScreenManager(*args: Any, **kwargs: Any)
A Screen Manager widget that also accepts an instance of
CupertinoPageControls
- add_widget(widget, *args, **kwargs)
Callback when a
Screen
or aCupertinoPageControls
is added toCupertinoScreenManager
- Parameters
widget – Widget to be added to
CupertinoScreenManager