From bbc1cbe2ff4121fb63e01df681798a54a7a701aa Mon Sep 17 00:00:00 2001 From: Sam Manzi Date: Mon, 14 Sep 2015 10:13:41 +1000 Subject: [PATCH] 8888 'Link Editor' add help url --- gramps/gui/editors/editlink.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/gramps/gui/editors/editlink.py b/gramps/gui/editors/editlink.py index a618a30c8..81a726852 100644 --- a/gramps/gui/editors/editlink.py +++ b/gramps/gui/editors/editlink.py @@ -37,6 +37,16 @@ from ..managedwindow import ManagedWindow from ..display import display_help from ..glade import Glade from gramps.gen.simple import SimpleAccess +from gramps.gen.const import URL_MANUAL_PAGE + +#------------------------------------------------------------------------- +# +# Constants +# +#------------------------------------------------------------------------- + +WIKI_HELP_PAGE = _('%s_-_Entering_and_editing_data:_detailed_-_part_2') % URL_MANUAL_PAGE +WIKI_HELP_SEC = _('Link_Editor') WEB, EVENT, FAMILY, MEDIA, NOTE, PERSON, PLACE, REPOSITORY, SOURCE = list(range(9)) OBJECT_MAP = { @@ -212,7 +222,9 @@ class EditLink(ManagedWindow): self.define_cancel_button(self.top.get_object('button125')) self.ok_button = self.top.get_object('button124') self.define_ok_button(self.ok_button, self.save) - self.define_help_button(self.top.get_object('button130')) + # TODO help button (rename glade button name) + self.define_help_button(self.top.get_object('button130'), + WIKI_HELP_PAGE, WIKI_HELP_SEC) self.update_ui(self.url_link) def build_menu_names(self, obj):