mirror of https://github.com/kivy/kivy.git
16 lines
445 B
Python
16 lines
445 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 xrange(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()
|