* src/PedView.py (load_canvas): Set anchor_txt to None if no

person is selected; (set_anchor,remove_anchor): Only set anchor
text if anchor_txt evaluates as True.


svn: r4829
This commit is contained in:
Alex Roitman 2005-06-16 00:30:07 +00:00
parent 197a013f2e
commit 369fcf562e
2 changed files with 9 additions and 2 deletions

View File

@ -6,6 +6,10 @@
* src/plugins/WriteFtree.py (FtreeWriterOptionBox.get_option_box):
Build person-centered filters only if a person is selected.
* src/PedView.py (load_canvas): Set anchor_txt to None if no
person is selected; (set_anchor,remove_anchor): Only set anchor
text if anchor_txt evaluates as True.
2005-06-15 Martin Hawlisch <Martin.Hawlisch@gmx.de>
* src/po/de.po: Applied patches from Jens Seidel <jensseidel@users.sf.net>
and Anton Huber <anton_huber@gmx.de>

View File

@ -224,6 +224,7 @@ class PedigreeView:
if person is not self.active_person:
self.active_person = person
if person == None:
self.anchor_txt = None
return
h = 0
@ -358,10 +359,12 @@ class PedigreeView:
self.anchor = self.active_person
else:
self.anchor = None
if self.anchor_txt:
self.anchor_txt.set(text=self.make_anchor_label())
def remove_anchor(self):
self.anchor = None
if self.anchor_txt:
self.anchor_txt.set(text=self.make_anchor_label())
def on_anchor_set(self,junk):