* src/EditPerson

Don't reset date value after a page switch


svn: r1665
This commit is contained in:
Don Allingham 2003-06-07 15:38:53 +00:00
parent e6ca408c2d
commit 220351346d

View File

@ -985,6 +985,7 @@ class EditPerson:
self.redraw_event_list() self.redraw_event_list()
def update_birth_death(self): def update_birth_death(self):
print "update"
self.bdate.set_text(self.birth.getDate()) self.bdate.set_text(self.birth.getDate())
self.bplace.set_text(self.birth.getPlaceName()) self.bplace.set_text(self.birth.getPlaceName())
self.bdate_check.set_calendar(self.birth.getDateObj().get_calendar()) self.bdate_check.set_calendar(self.birth.getDateObj().get_calendar())
@ -992,10 +993,6 @@ class EditPerson:
self.ddate_check.set_calendar(self.death.getDateObj().get_calendar()) self.ddate_check.set_calendar(self.death.getDateObj().get_calendar())
self.dplace.set_text(self.death.getPlaceName()) self.dplace.set_text(self.death.getPlaceName())
self.dplace.set_text(self.death.getPlaceName()) self.dplace.set_text(self.death.getPlaceName())
# self.bdate.set_position(0)
# self.ddate.set_position(0)
# self.bplace.set_position(0)
# self.dplace.set_position(0)
def on_update_attr_clicked(self,obj): def on_update_attr_clicked(self,obj):
import AttrEdit import AttrEdit
@ -1481,8 +1478,6 @@ class EditPerson:
def on_switch_page(self,obj,a,page): def on_switch_page(self,obj,a,page):
if page == 0: if page == 0:
self.load_person_image() self.load_person_image()
self.update_death_info()
self.update_birth_info()
elif page == 2: elif page == 2:
self.redraw_event_list() self.redraw_event_list()
elif page == 6 and self.not_loaded: elif page == 6 and self.not_loaded: