Bar

Bars are generally positioned at the top or bottom of a screen and contain widgets and/or information for easy access by users

class kivycupertino.uix.bar.CupertinoNavigationBar(*args: Any, **kwargs: Any)

iOS style Navigation Bar. CupertinoNavigationBar is a RelativeLayout and can accept any number of widgets

../_images/demo.png
color = [0.95, 0.95, 0.95, 1]

Background color of CupertinoNavigationBar

../_images/color.png

Python

CupertinoNavigationBar(color=(0.5, 0, 0, 1))

KV

CupertinoNavigationBar:
    color: 0.5, 0, 0, 1
class kivycupertino.uix.bar.CupertinoTab(*args: Any, **kwargs: Any)

iOS style tab to be used with CupertinoTabBar

../_images/demo1.png
color_selected = [0.2, 0.45, 1, 1]

Color of the selected tab of CupertinoTab

../_images/color_selected.png

Python

CupertinoTabBar(color_selected=(1, 0, 0, 1))

KV

CupertinoTab:
    color_selected: 1, 0, 0, 1
color_unselected = [0.7, 0.7, 0.75, 1]

Color of CupertinoTabBar when not selected

../_images/color_unselected.png

Python

CupertinoTab(color_unselected=(0.5, 0, 0, 1))

KV

CupertinoTab:
    color_unselected: 0.5, 0, 0, 1
symbol = ' '

Symbol of CupertinoTab

../_images/symbol.png

Python

CupertinoTab(symbol='hammer_fill')

KV

CupertinoTab:
    symbol: 'hammer_fill'
text = ' '

Text of CupertinoTab

../_images/text.png

Python

CupertinoTab(text='Tab')

KV

CupertinoTab:
    text: 'Tab'
class kivycupertino.uix.bar.CupertinoTabBar(*args: Any, **kwargs: Any)

iOS style tab bar

../_images/demo.gif
add_widget(widget, index=0, canvas=None)

Add an instance of CupertinoTab to CupertinoTabBar

background_color = [0.95, 0.95, 0.95, 1]

Background color of CupertinoTabBar when selected

../_images/background_color.png

Python

CupertinoTabBar(background_color=(0.5, 0, 0, 1))

KV

CupertinoTabBar:
    background_color: 0.5, 0, 0, 1
get_selected_tab()

Get the currently selected tab of CupertinoTabBar

Returns

The selected CupertinoTab

class kivycupertino.uix.bar.CupertinoToolbar(*args: Any, **kwargs: Any)

iOS style Toolbar. CupertinoToolbar is a RelativeLayout and can accept any number of widgets

../_images/demo2.png
color = [0.95, 0.95, 0.95, 1]

Background color of CupertinoToolbar

../_images/color1.png

Python

CupertinoToolbar(color=(0.5, 0, 0, 1))

KV

CupertinoToolbar:
    color: 0.5, 0, 0, 1