(self, func)
Apply `func` to every rendered tree viewer instance.
Apply `func` to every rendered tree viewer instance.
Apply func to every rendered tree viewer instance .
def update_tree_views(self, func):
        # type: (Callable[[PythagorasTreeViewer], None]) -> None
        """Apply `func` to every rendered tree viewer instance."""
        for idx, tree_data in enumerate(self._other_data):
            if 'tree' in tree_data:
                func(tree_data['tree'])
                index = self.index(idx)
                if QT_VERSION < 0x50000:
                    self.dataChanged.emit(index, index)
                else:
                    self.dataChanged.emit(index, index, [Qt.DisplayRole])
def update_tree_views ( self , func ) : # type: (Callable[[PythagorasTreeViewer], None]) -> None for idx , tree_data in enumerate ( self . _other_data ) : if 'tree' in tree_data : func ( tree_data [ 'tree' ] ) index = self . index ( idx ) if QT_VERSION < 0x50000 : self . dataChanged . emit ( index , index ) else : self . dataChanged . emit ( index , index , [ Qt . DisplayRole ] )