【Kivy】Carousel を表示する

  • main.py
from kivy.app import App

class MainApp(App):
    pass

if __name__ == '__main__':
    MainApp().run()
  • main.kv
#:kivy 1.0
Carousel:
    direction: 'right'
    Label:
        text: 'Item 1'
    Label:
        text: 'Item 2'
    Label:
        text: 'Item 3'
    Label:
        text: 'Item 4'