From 5f04d3a00298f8ec692cce9b9ac839501a6313ea Mon Sep 17 00:00:00 2001 From: Erik De Richter Date: Fri, 18 Apr 2008 09:40:27 +0000 Subject: [PATCH] bug ID 0001767 wiki ink to manual compare events svn: r10583 --- src/plugins/EventCmp.py | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/src/plugins/EventCmp.py b/src/plugins/EventCmp.py index 07dd400f3..ceb91f37f 100644 --- a/src/plugins/EventCmp.py +++ b/src/plugins/EventCmp.py @@ -29,7 +29,6 @@ #------------------------------------------------------------------------ import os import sys -from gettext import gettext as _ #------------------------------------------------------------------------ # @@ -54,12 +53,22 @@ import DateHandler from QuestionDialog import WarningDialog from PluginUtils import Tool, register_tool from ReportBase import ReportUtils -from GrampsDisplay import help +import GrampsDisplay import ManagedWindow +from TransUtils import sgettext as _ + + +#------------------------------------------------------------------------- +# +# Constants +# +#------------------------------------------------------------------------- +WIKI_HELP_PAGE = 'Gramps_3.0_Wiki_Manual_-_Tools' +WIKI_HELP_SEC = _('manual|Compare_Individual_Events') #------------------------------------------------------------------------ # -# +# EventCmp # #------------------------------------------------------------------------ class TableReport: @@ -148,7 +157,7 @@ class EventComparison(Tool.Tool,ManagedWindow.ManagedWindow): def on_help_clicked(self, obj): """Display the relevant portion of GRAMPS manual""" - help() + GrampsDisplay.help(webpage=WIKI_HELP_PAGE, section=WIKI_HELP_SEC) def build_menu_names(self, obj): return (_("Filter selection"),_("Event Comparison tool")) @@ -247,7 +256,7 @@ class DisplayChart(ManagedWindow.ManagedWindow): def on_help_clicked(self, obj): """Display the relevant portion of GRAMPS manual""" - help() + GrampsDisplay.help(webpage=WIKI_HELP_PAGE, section=WIKI_HELP_SEC) def build_menu_names(self, obj): return (_("Event Comparison Results"),None)