Exemplo n.º 1
0
    def _eval_filter(self):
        logger.debug('Filtering with labels: %s tags: %s, filter: %s', self.label_filter, self.tag_filter, self.filter)

        def filter(model, path, iter):
            visible = self._filter_item(model[iter])
            model[iter][self.MCOL_VISI] = visible
            if visible:
                parent = model.iter_parent(iter)
                while parent:
                    model[parent][self.MCOL_VISI] = visible
                    parent = model.iter_parent(parent)

        self.real_model.foreach(filter)
        self.expand_all()
Exemplo n.º 2
0
 def copy_to_clipboard(self, *a):
     '''Exports currently visible elements from the codes list'''
     logger.debug('Exporting to clipboard current view of qda codes.')
     text = self.get_visible_data_as_csv()
     Clipboard.set_text(text)