Consolidate all logic for setting up a 'surname' combo box.

svn: r531
This commit is contained in:
David Hampton
2001-11-01 02:33:55 +00:00
parent 26cb4577bd
commit 6e62aed286
8 changed files with 61 additions and 39 deletions

View File

@ -193,9 +193,7 @@ class EditPerson:
self.window.editable_enters(self.ddate);
self.window.editable_enters(self.dplace);
if len(const.surnames) > 0:
const.surnames.sort()
self.get_widget("lastNameList").set_popdown_strings(const.surnames)
utils.attach_surnames(self.get_widget("lastNameList"))
self.gid.set_text(person.getId())
self.gid.set_editable(Config.id_edit)