Beispiel #1
0
 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)
Beispiel #2
0
 def __init__(self, *args, **kwargs):
     self.show_all = kwargs.pop('show_all', False)
     kwargs['text'] = 'name'
     TreeView.__init__(self, *args, **kwargs)
     self.path = None
Beispiel #3
0
 def clear(self):
     """Clear and disable"""
     TreeView.clear(self)
     self.set_sensitive(False)