Bug ID 0001767 Help button function link to manual

svn: r10563
This commit is contained in:
Erik De Richter 2008-04-14 15:32:52 +00:00
parent 6ec8d11e81
commit 00c144c8ec

View File

@ -28,7 +28,6 @@
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
import os import os
from gettext import gettext as _
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
# #
@ -54,7 +53,7 @@ import GrampsDisplay
import ManagedWindow import ManagedWindow
from PluginUtils import Tool, register_tool from PluginUtils import Tool, register_tool
from QuestionDialog import ErrorDialog, RunDatabaseRepair from QuestionDialog import ErrorDialog, RunDatabaseRepair
from TransUtils import sgettext as _
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
# #
# Constants # Constants
@ -66,6 +65,8 @@ _val2label = {
2.0 : _("High"), 2.0 : _("High"),
} }
WIKI_HELP_PAGE = 'Gramps_3.0_Wiki_Manual_-_Tools'
WIKI_HELP_SEC = _('manual|Find_Possible_Duplicate_People...')
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
# #
# #
@ -146,7 +147,8 @@ class Merge(Tool.Tool,ManagedWindow.ManagedWindow):
def on_help_clicked(self, obj): def on_help_clicked(self, obj):
"""Display the relevant portion of GRAMPS manual""" """Display the relevant portion of GRAMPS manual"""
GrampsDisplay.help()
GrampsDisplay.help(WIKI_HELP_PAGE , WIKI_HELP_SEC)
def ancestors_of(self,p1_id,id_list): def ancestors_of(self,p1_id,id_list):
if (not p1_id) or (p1_id in id_list): if (not p1_id) or (p1_id in id_list):
@ -583,8 +585,8 @@ class ShowMatches(ManagedWindow.ManagedWindow):
def on_help_clicked(self, obj): def on_help_clicked(self, obj):
"""Display the relevant portion of GRAMPS manual""" """Display the relevant portion of GRAMPS manual"""
GrampsDisplay.help()
GrampsDisplay.help(WIKI_HELP_PAGE , WIKI_HELP_SEC)
def redraw(self): def redraw(self):
list = [] list = []
for p1key in self.map.keys(): for p1key in self.map.keys():