(self)
return(terminals)
Walk the widget tree to find all of the visible terminals. That is,
        any terminals which are not hidden in another Notebook pane
Walk the widget tree to find all of the visible terminals. That is,
        any terminals which are not hidden in another Notebook pane
Walk the widget tree to find all of the visible terminals . That is any terminals which are not hidden in another Notebook pane
def get_visible_terminals(self):
        """Walk the widget tree to find all of the visible terminals. That is,
        any terminals which are not hidden in another Notebook pane"""
        if not hasattr(self, 'cached_maker'):
            self.cached_maker = Factory()
        maker = self.cached_maker
        terminals = {}

        for child in self.get_offspring():
            if not child:
                continue
            if maker.isinstance(child, 'Terminal'):
                terminals[child] = child.get_allocation()
            elif maker.isinstance(child, 'Container'):
                terminals.update(child.get_visible_terminals())
            else:
                err('Unknown child type %s' % type(child))

        return(terminals)
def get_visible_terminals ( self ) : if not hasattr ( self , 'cached_maker' ) : self . cached_maker = Factory ( ) maker = self . cached_maker terminals = { } for child in self . get_offspring ( ) : if not child : continue if maker . isinstance ( child , 'Terminal' ) : terminals [ child ] = child . get_allocation ( ) elif maker . isinstance ( child , 'Container' ) : terminals . update ( child . get_visible_terminals ( ) ) else : err ( 'Unknown child type %s' % type ( child ) ) return ( terminals )