From 765e5cec77a1c3be098641434a9bf8199349f89b Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Sun, 19 Jun 2005 16:27:11 +0000 Subject: [PATCH] * src/ChooseParents.y: display "Loading..." while loading lists svn: r4847 --- gramps2/ChangeLog | 3 +++ gramps2/src/ChooseParents.py | 10 ++++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 0d1818134..879ee9f84 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,6 @@ +2005-06-19 Don Allingham + * src/ChooseParents.y: display "Loading..." while loading lists + 2005-06-18 Don Allingham * src/ChooseParents.py: build custom filter rules to speed up loading the data, provide watch cursor to provide feedback to diff --git a/gramps2/src/ChooseParents.py b/gramps2/src/ChooseParents.py index c74b832c0..4deb2f68e 100644 --- a/gramps2/src/ChooseParents.py +++ b/gramps2/src/ChooseParents.py @@ -123,7 +123,11 @@ class ChooseParents: self.glade = gtk.glade.XML(const.gladeFile,"familyDialog","gramps") self.window = self.glade.get_widget("familyDialog") + self.flabel = self.glade.get_widget("flabel") + self.mlabel = self.glade.get_widget("mlabel") self.window.window.set_cursor(gtk.gdk.Cursor(gtk.gdk.WATCH)) + self.mlabel.set_label("%s" % _("Loading...")) + self.flabel.set_label("%s" % _("Loading...")) name = NameDisplay.displayer.display(self.person) self.title_text = _("Choose the Parents of %s") % name @@ -136,8 +140,6 @@ class ChooseParents: self.title = self.glade.get_widget("chooseTitle") self.father_list = self.glade.get_widget("father_list") self.mother_list = self.glade.get_widget("mother_list") - self.flabel = self.glade.get_widget("flabel") - self.mlabel = self.glade.get_widget("mlabel") self.showallf = self.glade.get_widget('showallf') self.showallm = self.glade.get_widget('showallm') self.add_itself_to_menu() @@ -354,22 +356,22 @@ class ChooseParents: def redrawf(self): """Redraws the potential father list""" self.father_model = PeopleModel.PeopleModel(self.db,self.father_filter) + self.father_list.set_model(self.father_model) if self.type == RelLib.Family.CIVIL_UNION: self.flabel.set_label("%s" % _("Par_ent")) else: self.flabel.set_label("%s" % _("Fath_er")) - self.father_list.set_model(self.father_model) def redrawm(self): """Redraws the potential mother list""" self.mother_model = PeopleModel.PeopleModel(self.db,self.mother_filter) + self.mother_list.set_model(self.mother_model) if self.type == RelLib.Family.CIVIL_UNION: self.mlabel.set_label("%s" % _("Pa_rent")) else: self.mlabel.set_label("%s" % _("Mothe_r")) - self.mother_list.set_model(self.mother_model) def parent_relation_changed(self,obj): """Called everytime the parent relationship information is changed"""