Sort places in pulldown menus

svn: r1581
This commit is contained in:
Don Allingham 2003-05-23 02:12:55 +00:00
parent 0127273296
commit f5dbea2a49
2 changed files with 8 additions and 4 deletions

View File

@ -214,9 +214,10 @@ class EditPerson:
self.on_web_select_row,
self.on_update_url_clicked)
self.autoplace = AutoComp.AutoCombo(self.bpcombo,self.pmap.keys())
self.autodeath = AutoComp.AutoCombo(self.dpcombo,self.pmap.keys(),
self.autoplace)
place_list = self.pmap.keys()
place_list.sort()
self.autoplace = AutoComp.AutoCombo(self.bpcombo, place_list)
self.autodeath = AutoComp.AutoCombo(self.dpcombo, place_list, self.autoplace)
self.comp = AutoComp.AutoCombo(self.sncombo,self.db.getSurnames())
self.gid.set_text(person.getId())

View File

@ -174,7 +174,10 @@ class Marriage:
else:
self.lds_temple.entry.set_text("")
self.seal_stat = 0
self.autoplace = AutoComp.AutoCombo(self.lds_place,self.pmap.keys())
place_list = self.pmap.keys()
place_list.sort()
self.autoplace = AutoComp.AutoCombo(self.lds_place, place_list)
self.build_seal_menu()