def add_item(self, item, parent=None): if (not item.ishidden() or self.show_all) and self.filter(item): return TreeView.add_item(self, item, parent)
def __init__(self, *args, **kwargs): self.show_all = kwargs.pop('show_all', False) kwargs['text'] = 'name' TreeView.__init__(self, *args, **kwargs) self.path = None
def clear(self): """Clear and disable""" TreeView.clear(self) self.set_sensitive(False)