tests with kivy

This commit is contained in:
Tobias Kurze
2020-09-14 21:00:18 +02:00
parent c5fecf91c6
commit c05c456f31
9 changed files with 772 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
ShowcaseScreen:
name: 'Accordions'
fullscreen: True
BoxLayout:
size_hint_y: None
height: '48dp'
ToggleButton:
id: tbh
text: 'Horizontal'
group: 'accordion'
state: 'down'
ToggleButton:
text: 'Vertical'
group: 'accordion'
Accordion:
orientation: 'horizontal' if tbh.state == 'down' else 'vertical'
AccordionItem:
title: 'Panel 1'
Label:
text: 'This is a label fit to the content view'
text_size: self.width, None
AccordionItem:
title: 'Panel 2'
Button:
text: 'A button, what else?'
AccordionItem:
title: 'Panel 3'
Label:
text: 'This is a label fit to the content view'
text_size: self.width, None

26
data/screens/buttons.kv Normal file
View File

@@ -0,0 +1,26 @@
ShowcaseScreen:
name: 'Buttons'
Button:
size_hint_y: None
height: '48dp'
text: 'Button normal'
Button:
size_hint_y: None
height: '48dp'
text: 'Button down'
state: 'down'
Button:
size_hint_y: None
height: '48dp'
text: 'Button disabled'
disabled: True
Button:
size_hint_y: None
height: '48dp'
text: 'Button down disabled'
state: 'down'
disabled: True