MCPcopy Index your code
hub / github.com/flet-dev/flet / add_clicked

Method add_clicked

sdk/python/examples/tutorials/todo/async/main.py:127–133  ·  view source on GitHub ↗
(self, e)

Source from the content-addressed store, hash-verified

125 )
126
127 async def add_clicked(self, e):
128 if self.new_task.value:
129 task = Task(self.new_task.value, self.task_status_change, self.task_delete)
130 self.tasks.controls.append(task)
131 self.new_task.value = ""
132 await self.new_task.focus()
133 await self.update()
134
135 async def task_status_change(self, task):
136 await self.update()

Callers

nothing calls this directly

Calls 4

updateMethod · 0.95
appendMethod · 0.80
TaskClass · 0.70
focusMethod · 0.45

Tested by

no test coverage detected