Split Utils in a non GUI and GUI part

move GrampsCfg utils to Utils
improve import strategy


svn: r12680
This commit is contained in:
Benny Malengier
2009-06-19 15:23:58 +00:00
parent 0ac67e8a59
commit 9d417e2cd6
40 changed files with 327 additions and 405 deletions

View File

@@ -47,6 +47,7 @@ import gobject
#
#-------------------------------------------------------------------------
import Utils
from gui.utils import ProgressMeter
import widgets
import ManagedWindow
from QuestionDialog import OptionDialog
@@ -107,7 +108,7 @@ class LastNameDialog(ManagedWindow.ManagedWindow):
# build up the list of surnames, keeping track of the count for each
# name (this can be a lengthy process, so by passing in the
# dictionary we can be certain we only do this once)
progress = Utils.ProgressMeter(_('Finding Surnames'))
progress = ProgressMeter(_('Finding Surnames'))
progress.set_pass(_('Finding surnames'),
database.get_number_of_people())
for person_handle in database.get_person_handles(False):

View File

@@ -347,7 +347,7 @@ class ToolManagedWindowBase(ManagedWindow.ManagedWindow):
buffer.set_text("")
def pre_run(self):
from Utils import ProgressMeter
from gui.utils import ProgressMeter
self.progress = ProgressMeter(self.get_title())
def run(self):