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

Function delete_button

notepad/notepad_support.py:35–48  ·  view source on GitHub ↗
(p1)

Source from the content-addressed store, hash-verified

33
34
35def delete_button(p1):
36 global index
37 global results
38 global cursor
39
40 # fetch id of the current note
41 id = results[index][0]
42
43 sql_command = """ DELETE FROM notes WHERE id = {0}; """
44 sql_command = sql_command.format(id)
45
46 cursor.execute(sql_command)
47
48 connection.commit()
49
50
51def create_button(p1):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected