def onLine(self, event=None, checked=None, label=None, lines=[]):
        if checked is None:
            try:
                checked =event.IsChecked()
            except:
                pass
        if checked is None: checked = False

        if lines in label and not checked:
            lines.remove(label)
        elif label not in lines and checked:
            lines.append(label)
        if self.parent.selected_elem is not None:
            self.parent.onShowLines(elem=self.parent.selected_elem)
dataset/ETHPy150Open xraypy/xraylarch/plugins/wx/xrfdisplay_utils.py/XrayLinesFrame.onLine/swapped operands of `in`