Clear displays after a new database is created.

svn: r1305
This commit is contained in:
Don Allingham
2003-02-14 02:20:59 +00:00
parent a942d4c594
commit 8637d33501
3 changed files with 18 additions and 6 deletions

View File

@@ -144,15 +144,18 @@ class PedigreeView:
self.load_person = lp
self.presel_descendants = []
def load_canvas(self, person):
"""Redraws the pedigree view window, using the passed person
as the root person of the tree."""
def clear(self):
for i in self.canvas_items:
i.destroy()
for i in self.boxes:
i.cleanup()
def load_canvas(self, person):
"""Redraws the pedigree view window, using the passed person
as the root person of the tree."""
self.clear()
if person is not self.active_person:
del self.presel_descendants[:]
self.active_person = person