code: def __makeShowColumnFunction(self, column_idx):
          
          show_column = lambda checked: self.setColumnHidden(column_idx, not checked)
          return show_column
docs: Creates a function that shows or hides a column.