* src/PedView.py (DispBox.__init__): Conditional display of "b."

and "d." strings depending on the availability of the appropriate date.
* NEWS: Start new section for 0.9.3 release.


svn: r1754
This commit is contained in:
Alex Roitman
2003-06-16 17:22:09 +00:00
parent 1fdefdc72b
commit 3c0376029c
3 changed files with 27 additions and 3 deletions

View File

@@ -58,9 +58,17 @@ class DispBox:
self.root = root
self.name = GrampsCfg.nameof(person)
self.exp = "%s\n%s %s\n%s %s" % (self.name,
_BORN,person.getBirth().getDate(),
_DIED, person.getDeath().getDate())
bd = person.getBirth().getDate()
dd = person.getDeath().getDate()
if bd and dd:
self.exp = "%s\n%s %s\n%s %s" % (self.name,_BORN,bd,_DIED,dd )
elif bd:
self.exp = "%s\n%s %s" % (self.name,_BORN,bd )
elif dd:
self.exp = "%s\n%s %s" % (self.name,_DIED,dd )
else:
self.exp = "%s" % self.name
self.group = self.root.add(gnome.canvas.CanvasGroup,x=x,y=y)
self.shadow = self.group.add(gnome.canvas.CanvasRect,