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

40 lines
793 B
Plaintext
Raw Normal View History

2024-09-15 12:12:16 +00:00
ShowcaseScreen:
name: 'ToggleButton'
GridLayout:
cols: 3
spacing: '8dp'
size_hint_y: None
height: self.minimum_height
Label:
text: 'Choice 1'
ToggleButton:
size_hint_y: None
height: '48dp'
text: 'A'
group: 'g1'
ToggleButton:
size_hint_y: None
height: '48dp'
text: 'B'
group: 'g1'
Label:
text: 'Choice 2'
ToggleButton:
size_hint_y: None
height: '48dp'
text: 'A'
group: 'g2'
ToggleButton:
size_hint_y: None
height: '48dp'
text: 'B'
group: 'g2'