Handle gtk.TextView API change

svn: r1296
This commit is contained in:
Don Allingham 2003-02-10 04:13:15 +00:00
parent 0e8a88146a
commit 695688b357

View File

@ -181,7 +181,10 @@ class PedigreeView:
for n in [GrampsCfg.nameof(t[0]),
"b. %s" % t[0].getBirth().getDate(),
"d. %s" % t[0].getDeath().getDate()]:
a.set_text(n,len(n))
try:
a.set_text(n,len(n))
except TypeError:
a.set_text(n)
(w1,h1) = a.get_pixel_size()
h = max(h,h1)
w = max(w,w1)