mirror of https://github.com/kivy/kivy.git
18 lines
446 B
Python
18 lines
446 B
Python
from kivy.uix.accordion import Accordion, AccordionItem
|
|
from kivy.uix.label import Label
|
|
from kivy.app import App
|
|
|
|
|
|
class AccordionApp(App):
|
|
def build(self):
|
|
root = Accordion()
|
|
for x in range(5):
|
|
item = AccordionItem(title='Title %d' % x)
|
|
item.add_widget(Label(text='Very big content\n' * 10))
|
|
root.add_widget(item)
|
|
return root
|
|
|
|
|
|
if __name__ == '__main__':
|
|
AccordionApp().run()
|