Convert remaining gui files to use relative imports

svn: r20513
This commit is contained in:
Nick Hall
2012-10-03 16:14:48 +00:00
parent 251aff61a0
commit b74b1ee293
4 changed files with 7 additions and 7 deletions

View File

@@ -46,7 +46,7 @@ else:
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
from gramps.gen.const import VERSION, ICON, SPLASH from gramps.gen.const import VERSION, ICON, SPLASH
from gramps.gui.display import display_help, display_url from ..display import display_help, display_url
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
# #

View File

@@ -35,7 +35,7 @@ from gi.repository import Gtk
from gramps.gen.const import URL_MANUAL_PAGE from gramps.gen.const import URL_MANUAL_PAGE
from gramps.gen.ggettext import sgettext as _ from gramps.gen.ggettext import sgettext as _
from _errorreportassistant import ErrorReportAssistant from _errorreportassistant import ErrorReportAssistant
from gramps.gui.display import display_help from ..display import display_help
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
# #

View File

@@ -1760,7 +1760,7 @@ class GuiStyleOption(GuiEnumeratedListOption):
style sheet editor object and let them play. When they are style sheet editor object and let them play. When they are
done, update the displayed styles.""" done, update the displayed styles."""
from gramps.gen.plug.docgen import StyleSheetList 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(), style_list = StyleSheetList(self.__option.get_style_file(),
self.__option.get_default_style()) self.__option.get_default_style())
StyleListDisplay(style_list, None, None) StyleListDisplay(style_list, None, None)

View File

@@ -291,7 +291,7 @@ class PluginStatus(ManagedWindow):
Reloads the addons from the wiki into the list. Reloads the addons from the wiki into the list.
""" """
import urllib import urllib
from gramps.gui.utils import ProgressMeter from ..utils import ProgressMeter
URL = "%s%s" % (URL_WIKISTRING, WIKI_EXTRAPLUGINS_RAWDATA) URL = "%s%s" % (URL_WIKISTRING, WIKI_EXTRAPLUGINS_RAWDATA)
try: try:
fp = urllib.urlopen(URL) fp = urllib.urlopen(URL)
@@ -376,7 +376,7 @@ class PluginStatus(ManagedWindow):
Get all addons from the wiki and install them. Get all addons from the wiki and install them.
""" """
import urllib import urllib
from gramps.gui.utils import ProgressMeter from ..utils import ProgressMeter
pm = ProgressMeter(_("Install all Addons"), _("Installing..."), message_area=True) pm = ProgressMeter(_("Install all Addons"), _("Installing..."), message_area=True)
pm.set_pass(total=len(self.addon_model)) pm.set_pass(total=len(self.addon_model))
for row in self.addon_model: for row in self.addon_model:
@@ -393,7 +393,7 @@ class PluginStatus(ManagedWindow):
""" """
Toplevel method to get an addon. Toplevel method to get an addon.
""" """
from gramps.gui.utils import ProgressMeter from ..utils import ProgressMeter
pm = ProgressMeter(_("Installing Addon"), message_area=True) pm = ProgressMeter(_("Installing Addon"), message_area=True)
pm.set_pass(total=2, header=_("Reading gramps-project.org...")) pm.set_pass(total=2, header=_("Reading gramps-project.org..."))
pm.step() pm.step()
@@ -869,7 +869,7 @@ class ToolManagedWindowBase(ManagedWindow):
buffer.set_text("") buffer.set_text("")
def pre_run(self): def pre_run(self):
from gramps.gui.utils import ProgressMeter from ..utils import ProgressMeter
self.progress = ProgressMeter(self.get_title()) self.progress = ProgressMeter(self.get_title())
def run(self): def run(self):