Skip to content

Commit 445ad0b

Browse files
Add Help button to FormActions dialog.
1 parent 6c6faae commit 445ad0b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Form/formactions.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#
22
# Gramps - a GTK+/GNOME based genealogy program
33
#
4-
# Copyright (C) 2019 Steve Youngs
4+
# Copyright (C) 2019-2020 Steve Youngs
55
#
66
# This program is free software; you can redistribute it and/or modify
77
# it under the terms of the GNU General Public License as published by
@@ -50,6 +50,7 @@
5050
from gramps.gen.config import config
5151
from gramps.gen.datehandler import get_date
5252
from gramps.gen.db import DbTxn
53+
from gramps.gui.display import display_help
5354

5455
#------------------------------------------------------------------------
5556
#
@@ -162,6 +163,7 @@ def _create_dialog(self, title):
162163
slist.set_policy(Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC)
163164
box.pack_start(slist, True, True, 5)
164165

166+
top.add_button(_('_Help'), Gtk.ResponseType.HELP)
165167
top.add_button(_('_Cancel'), Gtk.ResponseType.CANCEL)
166168
top.add_button(_('_OK'), Gtk.ResponseType.OK)
167169
top.set_default_response(Gtk.ResponseType.OK)

0 commit comments

Comments
 (0)