'Measure selection has changed. Update column visibility.'

def measuresSelectionChanged(self, measure):

    checked = self.selectedMeasures[measure.name]
    self.selectedMeasures[measure.name] = (not checked)
    if (not checked):
        self.selected_checks.add(measure.name)
    elif (measure.name in self.selected_checks):
        self.selected_checks.remove(measure.name)
    measures_mask = ([False] * len(self.measures))
    measures_mask += [False for _ in self.learners]
    if ((measure in self.measures) and self.measure_scores):
        index = self.measures.index(measure)
        if all(((s is None) for s in self.measure_scores[index])):
            measures_mask[index] = True
    if self.update_scores:
        self.updateScores(measures_mask)
    self.updateVisibleScoreColumns()
