performance enhancements

svn: r6179
This commit is contained in:
Don Allingham
2006-03-19 23:34:23 +00:00
parent c4fcd98fdc
commit 6c198f1f5c
6 changed files with 129 additions and 27 deletions

View File

@@ -77,6 +77,8 @@ from GrampsWidgets import *
from ObjectSelector import PersonSelector,PersonFilterSpec
from SelectPerson import SelectPerson
class ChildEmbedList(EmbeddedList):
"""
The child embed list is specific to the Edit Family dialog, so it
@@ -204,7 +206,7 @@ class ChildEmbedList(EmbeddedList):
sel = SelectPerson(self.dbstate.db, "Select Child",
skip=[ x for x in skip if x])
person = sel.run()
if person:
self.family.add_child_handle(person.get_handle())
self.rebuild()
@@ -246,6 +248,10 @@ class ChildEmbedList(EmbeddedList):
# RelLib.Person.__name__))
# selector_window.close()
def run(self,skip):
SelectPerson(self.dbstate.db, "Select Child",
skip=[ x for x in skip if x])
def del_button_clicked(self,obj):
handle = self.get_selected()
if handle: