def edit_person_clicked(self, event):
     person = self.selection_widget.get_current().person
     if person:
         EditPerson(self.dbstate, self.uistate, self.track, person)
         self.refresh()
 def add_person_clicked(self, event):
     if self.selection_widget.get_current():
         person = Person()
         EditPerson(self.dbstate, self.uistate, self.track, person,
                    self.new_person_added)