MCPcopy Index your code
hub / github.com/secdev/scapy / delete

Method delete

scapy/modules/ticketer.py:1585–1595  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1583 append(new_values.copy())
1584
1585 def delete():
1586 slavescount = len(tbl.grid_slaves())
1587 i = tksd.askinteger(
1588 "Delete",
1589 "Input the index of the Claim to delete [0-%s]" % (slavescount - 1),
1590 parent=tbl,
1591 )
1592 if i is None or i > slavescount - 1:
1593 return
1594 tbl.grid_slaves(row=i, column=0)[0].destroy()
1595 del data[i]
1596
1597 btns = ttk.Frame(element)
1598 ttk.Button(btns, text="Add", command=add).grid(row=0, column=0, padx=10)

Callers 1

removeMethod · 0.45

Calls 1

destroyMethod · 0.45

Tested by

no test coverage detected