2008-01-15 Douglas S. Blank <dblank@cs.brynmawr.edu>
* src/plugins/DefaultGramplets.py (TopSurnamesGramplet.main): make clicking on data easier by clicking on entire line (bug #1594) svn: r9822
This commit is contained in:
parent
2670ca2637
commit
a453da4b6c
@ -1,3 +1,7 @@
|
||||
2008-01-15 Douglas S. Blank <dblank@cs.brynmawr.edu>
|
||||
* src/plugins/DefaultGramplets.py (TopSurnamesGramplet.main): make
|
||||
clicking on data easier by clicking on entire line (bug #1594)
|
||||
|
||||
2008-01-15 Raphael Ackermann <raphael.ackermann@gmail.com>
|
||||
* src/const.py.in: added constants for help pages
|
||||
* src/ViewManager.py: support for help pages called from menu
|
||||
|
@ -242,10 +242,9 @@ class TopSurnamesGramplet(Gramplet):
|
||||
### All done!
|
||||
self.set_text("")
|
||||
for (count, surname) in surname_sort:
|
||||
self.append_text(" %d. " % (line + 1))
|
||||
self.link(surname, 'Surname', representative_handle[surname])
|
||||
self.append_text(", %d%% (%d)\n" %
|
||||
(int((float(count)/total) * 100), count))
|
||||
text = "%s, %d%% (%d)\n" % (surname, int((float(count)/total) * 100), count)
|
||||
self.append_text(" %d. " % (line + 1))
|
||||
self.link(text, 'Surname', representative_handle[surname])
|
||||
line += 1
|
||||
if line >= self.top_size:
|
||||
break
|
||||
|
Loading…
Reference in New Issue
Block a user