def toggle_state(self, new_state):
        assert new_state in self.selector_widgets
        for k in self.selector_widgets:
            if k == new_state:
                continue
            self.selector_widgets[k].active = False
        self.selector_widgets[new_state].active = True
Change the active selector widget
dataset/ETHPy150Open mrterry/yoink/yoink/line_app.py/LineExtractor.toggle_state