* src/gramps.glade: Add Help buttons to dialogs.
* src/AddSpouse.py (on_spouse_help_clicked): Add function. * src/SelectChild.py (on_child_help_clicked): Add function. * src/Marriage.py (on_help_clicked): Add function. * src/EditPerson.py (on_help_clicked): Add function. * src/marriage.glade: Add Help button to a dialog. * src/edit_person.glade: Add Help button to a dialog. * src/dialog.glade: Add Help buttons to dialogs. * src/AddrEdit.py (on_help_clicked): Add function. * src/AttrEdit.py (on_help_clicked): Add function. * src/EventEdit.py (on_help_clicked): Add function. svn: r2347
This commit is contained in:
@ -29,6 +29,7 @@ from string import strip
|
||||
#-------------------------------------------------------------------------
|
||||
import gtk
|
||||
import gtk.glade
|
||||
import gnome
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
@ -162,6 +163,7 @@ class EventEditor:
|
||||
"on_add_src_clicked" : self.add_source,
|
||||
"on_del_src_clicked" : self.del_source,
|
||||
"on_switch_page" : self.on_switch_page,
|
||||
"on_help_event_clicked" : self.on_help_clicked
|
||||
})
|
||||
|
||||
menu = gtk.Menu()
|
||||
@ -179,11 +181,16 @@ class EventEditor:
|
||||
self.calendar.set_menu(menu)
|
||||
|
||||
self.window.set_transient_for(self.parent.window)
|
||||
val = self.window.run()
|
||||
if val == gtk.RESPONSE_OK:
|
||||
self.val = self.window.run()
|
||||
if self.val == gtk.RESPONSE_OK:
|
||||
self.on_event_edit_ok_clicked()
|
||||
self.window.destroy()
|
||||
|
||||
def on_help_clicked(self,obj):
|
||||
"""Display the relevant portion of GRAMPS manual"""
|
||||
gnome.help_display('gramps-manual','adv-ev')
|
||||
self.val = self.window.run()
|
||||
|
||||
def add_source(self,obj):
|
||||
pass
|
||||
|
||||
|
Reference in New Issue
Block a user