'Applies the filter selected through the checkboxes.'

def type_filter(self, button, ptype):

    self.filters[ptype] = button.get_active()
    active_types = [k for (k, v) in self.filters.items() if v]
    self.sclines.filter(active_types)
