()
| 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) |