Enable the "help" button to work on the report dialog.
svn: r10462
This commit is contained in:
parent
9c5ad9eb44
commit
50539237d7
@ -68,7 +68,6 @@ class BareReportDialog(ManagedWindow.ManagedWindow):
|
|||||||
|
|
||||||
frame_pad = 5
|
frame_pad = 5
|
||||||
border_pad = 6
|
border_pad = 6
|
||||||
HELP_TOPIC = None
|
|
||||||
|
|
||||||
def __init__(self, dbstate, uistate, option_class,
|
def __init__(self, dbstate, uistate, option_class,
|
||||||
name, translated_name, track=[]):
|
name, translated_name, track=[]):
|
||||||
@ -113,7 +112,6 @@ class BareReportDialog(ManagedWindow.ManagedWindow):
|
|||||||
self.window.set_has_separator(False)
|
self.window.set_has_separator(False)
|
||||||
self.window.set_modal(True)
|
self.window.set_modal(True)
|
||||||
|
|
||||||
if self.HELP_TOPIC:
|
|
||||||
self.help = self.window.add_button(gtk.STOCK_HELP, gtk.RESPONSE_HELP)
|
self.help = self.window.add_button(gtk.STOCK_HELP, gtk.RESPONSE_HELP)
|
||||||
self.help.connect('clicked',self.on_help_clicked)
|
self.help.connect('clicked',self.on_help_clicked)
|
||||||
|
|
||||||
@ -452,9 +450,10 @@ class BareReportDialog(ManagedWindow.ManagedWindow):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
def on_help_clicked(self, *obj):
|
def on_help_clicked(self, *obj):
|
||||||
if self.HELP_TOPIC:
|
|
||||||
import GrampsDisplay
|
import GrampsDisplay
|
||||||
GrampsDisplay.help(self.HELP_TOPIC)
|
GrampsDisplay.help(None,
|
||||||
|
"Gramps_3.0_Wiki_Manual_-_Reports",
|
||||||
|
self.report_name.replace(" ", "_") )
|
||||||
|
|
||||||
def on_ok_clicked(self, obj):
|
def on_ok_clicked(self, obj):
|
||||||
"""The user is satisfied with the dialog choices. Parse all options
|
"""The user is satisfied with the dialog choices. Parse all options
|
||||||
|
Loading…
Reference in New Issue
Block a user