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

@@ -48,6 +48,7 @@ import gobject
#
#-------------------------------------------------------------------------------
import Utils
from gui.utils import ProgressMeter
from gen.plug.docgen import BaseDoc, GVDoc
import Config
from ReportBase import CATEGORY_GRAPHVIZ
@@ -123,9 +124,9 @@ def _run_long_process_in_thread(func, header):
@return: nothing
"""
pbar = Utils.ProgressMeter(_('Processing File'))
pbar = ProgressMeter(_('Processing File'))
pbar.set_pass(total=40,
mode=Utils.ProgressMeter.MODE_ACTIVITY,
mode=ProgressMeter.MODE_ACTIVITY,
header=header)
sys_thread = threading.Thread(target=func)