* 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

@@ -141,7 +141,6 @@ class AddressEditor:
"on_ok_addr_clicked" : self.ok_clicked,
"on_cancel_addr_clicked" : self.close,
"on_addr_edit_delete_event" : self.on_delete_event,
"on_date_edit_clicked", self.on_date_edit_clicked,
})
if parent_window:
@@ -149,11 +148,6 @@ class AddressEditor:
self.add_itself_to_menu()
self.window.show()
def on_date_edit_clicked(self,obj):
date_dialog = DateEdit.DateEditorDialog(self.addr_start.checkval)
the_date = date_dialog.get_date()
print "The date was built as follows:", the_date
def on_delete_event(self,obj,b):
self.close_child_windows()
self.remove_itself_from_menu()