def _on_state_selected(self, *args):
    if (self._selected is not None):
        self._selected(self.current_state_record())
def _on_state_selected(self, *args):
    if (self._selected is not None):
        self._selected(self.current_state_record())