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

../_images/demo12.gif
background_color = [0, 0, 0, 0]

Background color of CupertinoPageControls

../_images/background_color2.png

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 on CupertinoPageControls when not selected

../_images/color_selected1.gif

Python

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 selected

../_images/color_unselected1.gif

Python

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 to CupertinoScreenManager

Parameters
tap = False

If tapping CupertinoPageControls will switch to a screen

../_images/tap.gif

Python

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 a CupertinoPageControls is added to CupertinoScreenManager

Parameters

widget – Widget to be added to CupertinoScreenManager