MCPcopy Create free account
hub / github.com/Akascape/CTkTable / delete_rows

Method delete_rows

CTkTable/ctktable.py:422–435  ·  view source on GitHub ↗

delete a particular row

(self, indices=[])

Source from the content-addressed store, hash-verified

420
421
422 def delete_rows(self, indices=[]):
423 """ delete a particular row """
424 if len(indices)==0:
425 return
426 self.values = [v for i, v in enumerate(self.values) if i not in indices]
427 for i in indices:
428 for j in range(self.columns):
429 self.data[i, j]["args"] = ""
430 for i in self.frame.values():
431 i.destroy()
432 self.rows -= len(set(indices))
433 self.frame = {}
434 self.draw_table()
435 self.update_data()
436
437 def delete_columns(self, indices=[]):
438 """ delete a particular column """

Callers

nothing calls this directly

Calls 2

draw_tableMethod · 0.95
update_dataMethod · 0.95

Tested by

no test coverage detected