Convert remaining gui files to use relative imports
svn: r20513
This commit is contained in:
parent
251aff61a0
commit
b74b1ee293
@ -46,7 +46,7 @@ else:
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from gramps.gen.const import VERSION, ICON, SPLASH
|
||||
from gramps.gui.display import display_help, display_url
|
||||
from ..display import display_help, display_url
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
|
@ -35,7 +35,7 @@ from gi.repository import Gtk
|
||||
from gramps.gen.const import URL_MANUAL_PAGE
|
||||
from gramps.gen.ggettext import sgettext as _
|
||||
from _errorreportassistant import ErrorReportAssistant
|
||||
from gramps.gui.display import display_help
|
||||
from ..display import display_help
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
|
@ -1760,7 +1760,7 @@ class GuiStyleOption(GuiEnumeratedListOption):
|
||||
style sheet editor object and let them play. When they are
|
||||
done, update the displayed styles."""
|
||||
from gramps.gen.plug.docgen import StyleSheetList
|
||||
from gramps.gui.plug.report._styleeditor import StyleListDisplay
|
||||
from report._styleeditor import StyleListDisplay
|
||||
style_list = StyleSheetList(self.__option.get_style_file(),
|
||||
self.__option.get_default_style())
|
||||
StyleListDisplay(style_list, None, None)
|
||||
|
@ -291,7 +291,7 @@ class PluginStatus(ManagedWindow):
|
||||
Reloads the addons from the wiki into the list.
|
||||
"""
|
||||
import urllib
|
||||
from gramps.gui.utils import ProgressMeter
|
||||
from ..utils import ProgressMeter
|
||||
URL = "%s%s" % (URL_WIKISTRING, WIKI_EXTRAPLUGINS_RAWDATA)
|
||||
try:
|
||||
fp = urllib.urlopen(URL)
|
||||
@ -376,7 +376,7 @@ class PluginStatus(ManagedWindow):
|
||||
Get all addons from the wiki and install them.
|
||||
"""
|
||||
import urllib
|
||||
from gramps.gui.utils import ProgressMeter
|
||||
from ..utils import ProgressMeter
|
||||
pm = ProgressMeter(_("Install all Addons"), _("Installing..."), message_area=True)
|
||||
pm.set_pass(total=len(self.addon_model))
|
||||
for row in self.addon_model:
|
||||
@ -393,7 +393,7 @@ class PluginStatus(ManagedWindow):
|
||||
"""
|
||||
Toplevel method to get an addon.
|
||||
"""
|
||||
from gramps.gui.utils import ProgressMeter
|
||||
from ..utils import ProgressMeter
|
||||
pm = ProgressMeter(_("Installing Addon"), message_area=True)
|
||||
pm.set_pass(total=2, header=_("Reading gramps-project.org..."))
|
||||
pm.step()
|
||||
@ -869,7 +869,7 @@ class ToolManagedWindowBase(ManagedWindow):
|
||||
buffer.set_text("")
|
||||
|
||||
def pre_run(self):
|
||||
from gramps.gui.utils import ProgressMeter
|
||||
from ..utils import ProgressMeter
|
||||
self.progress = ProgressMeter(self.get_title())
|
||||
|
||||
def run(self):
|
||||
|
Loading…
Reference in New Issue
Block a user