Created
January 17, 2019 15:38
-
-
Save WebSofter/2602d3b9b3dad612b5f7884f0fe1b908 to your computer and use it in GitHub Desktop.
List View in Kivy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class TextListView(StackLayout): | |
pass | |
#:kivy 1.10.1 | |
# -*- coding: utf-8 -*- | |
#: import ListItemButton kivy.uix.listview.ListItemButton | |
#: import ListAdapter kivy.adapters.listadapter.ListAdapter | |
<TextListView>: | |
ListView: | |
adapter: ListAdapter(data = ['0','1','2','3','4','5','6','7','8','9'], | |
cls = ListItemButton, | |
selection_mode='single') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment