MCPcopy Create free account
hub / github.com/geekcomputers/Python / del_Button

Function del_Button

Todo_GUi.py:13–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11
12
13def del_Button():
14 try:
15 task = List.curselection()[0]
16 List.delete(task)
17 except IndexError:
18 messagebox.showwarning("Selection Error", "Please select a task to delete.")
19
20
21# Create the main window

Callers

nothing calls this directly

Calls 1

deleteMethod · 0.45

Tested by

no test coverage detected