model, it = tv.get_selection().get_selected() model.set_value(it, 0, not bool(model.get_value(it, 0))) model.row_changed(path, it)