Python Kivy ListView: How to delete selected ListItemButton?
问题 I'm trying to learn kivy by building a simple todo-list app like suggested by Dusty Phillips, author of the book "Creating apps in Kivy". This is the code so far: from kivy.app import App from kivy.uix.boxlayout import BoxLayout from kivy.properties import ObjectProperty from kivy.uix.listview import ListItemButton class TaskButton(ListItemButton): pass class TodoRoot(BoxLayout): task_input = ObjectProperty() task_list = ObjectProperty() def add_task(self): self.task_list.adapter.data.extend(