def METHOD_NAME(self, selected):
    if selected:
        for c in self.get_siblings():
            c.METHOD_NAME(False)
        if self.get_container() is not None:
            self.get_container().METHOD_NAME(True)
    self.selected = selected