* src/DateEdit.py (DateEdit): Take care of both the button and

the LED pixmap now; Invoke DateEditorDialog if the button is pressed;
(DateEditorDialog): Correct the use of constants; adjust the date
on the calendar change; preserve the old date unless OK was pressed;
* src/AddrEdit.py: Remove date editor callback in favor of DateEdit.
* src/EditPerson.py: Remove date editor callback in favor of DateEdit.
* src/EventEdit.py: Remove date editor callback in favor of DateEdit.
* src/gramps.glade: Minor cleanup; remove unused signal handlers.


svn: r3554
This commit is contained in:
Alex Roitman
2004-09-18 23:39:40 +00:00
parent b66cf9e5f0
commit b9d8abee14
6 changed files with 173 additions and 93 deletions

View File

@ -423,8 +423,6 @@ class EditPerson:
"on_gender_activate" : self.on_gender_activate,
"on_givenName_focus_out_event": self.on_givenName_focus_out_event,
"on_help_person_clicked" : self.on_help_clicked,
"on_edit_date_birth_clicked": self.on_edit_date_birth_clicked,
"on_edit_date_death_clicked": self.on_edit_date_death_clicked,
})
self.update_birth_death()
@ -448,16 +446,6 @@ class EditPerson:
self.add_itself_to_winsmenu()
self.window.show()
def on_edit_date_birth_clicked(self,obj):
date_dialog = DateEdit.DateEditorDialog(self.bdate_check.checkval)
the_date = date_dialog.get_date()
print "The date was built as follows:", the_date
def on_edit_date_death_clicked(self,obj):
date_dialog = DateEdit.DateEditorDialog(self.ddate_check.checkval)
the_date = date_dialog.get_date()
print "The date was built as follows:", the_date
def close_child_windows(self):
for child_window in self.child_windows.values():
child_window.close(None)