8888 'Generate Testcases' add help url

This commit is contained in:
Sam Manzi 2015-09-22 07:53:09 +10:00
parent 17f8b4818c
commit 55733cb264

View File

@ -75,6 +75,16 @@ from gramps.gui.utils import ProgressMeter
from gramps.gen.utils.lds import TEMPLES from gramps.gen.utils.lds import TEMPLES
from gramps.gen.db.dbconst import * from gramps.gen.db.dbconst import *
from gramps.gen.const import ICON, LOGO, SPLASH from gramps.gen.const import ICON, LOGO, SPLASH
from gramps.gui.display import display_help
from gramps.gen.const import URL_MANUAL_PAGE
#-------------------------------------------------------------------------
#
# Constants
#
#-------------------------------------------------------------------------
WIKI_HELP_PAGE = '%s_-_Tools' % URL_MANUAL_PAGE
WIKI_HELP_SEC = _('Generate_Testcases_for_Persons_and_Families')
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
# #
@ -266,6 +276,10 @@ class TestcaseGenerator(tool.BatchTool):
self.entry_count.get_text()) self.entry_count.get_text())
self.top.destroy() self.top.destroy()
if response == Gtk.ResponseType.HELP:
display_help(webpage=WIKI_HELP_PAGE,
section=WIKI_HELP_SEC)
else:
if response == Gtk.ResponseType.OK: if response == Gtk.ResponseType.OK:
self.run_tool( cli=False) self.run_tool( cli=False)
# Save options # Save options