test-kivy-app/kivy_venv/share/kivy-examples/demo/showcase/data/screens/switches.kv

40 lines
745 B
Plaintext
Raw Normal View History

2024-09-15 12:12:16 +00:00
ShowcaseScreen:
name: 'Switches'
BoxLayout:
size_hint_y: None
height: '48dp'
Label:
text: 'Switch normal'
Switch:
BoxLayout:
size_hint_y: None
height: '48dp'
Label:
text: 'Switch active'
Switch:
active: True
BoxLayout:
size_hint_y: None
height: '48dp'
Label:
text: 'Switch off & disabled'
Switch:
disabled: True
active: False
BoxLayout:
size_hint_y: None
height: '48dp'
Label:
text: 'Switch on & disabled'
Switch:
disabled: True
active: True