(self)
return(terminals)
Walk down the widget tree to find all of the visible terminals.
        Mostly using Container::get_visible_terminals()
Walk down the widget tree to find all of the visible terminals.
        Mostly using Container::get_visible_terminals()
Walk down the widget tree to find all of the visible terminals . Mostly using Container :: get_visible_terminals ()
def get_visible_terminals(self):
        """Walk down the widget tree to find all of the visible terminals.
        Mostly using Container::get_visible_terminals()"""
        terminals = {}
        if not hasattr(self, 'cached_maker'):
            self.cached_maker = Factory()
        maker = self.cached_maker
        child = self.get_child()

        if not child:
            return([])

        # If our child is a Notebook, reset to work from its visible child
        if maker.isinstance(child, 'Notebook'):
            pagenum = child.get_current_page()
            child = child.get_nth_page(pagenum)

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

        return(terminals)
def get_visible_terminals ( self ) : terminals = { } if not hasattr ( self , 'cached_maker' ) : self . cached_maker = Factory ( ) maker = self . cached_maker child = self . get_child ( ) if not child : return ( [ ] ) # If our child is a Notebook, reset to work from its visible child if maker . isinstance ( child , 'Notebook' ) : pagenum = child . get_current_page ( ) child = child . get_nth_page ( pagenum ) if maker . isinstance ( child , 'Container' ) : terminals . update ( child . get_visible_terminals ( ) ) elif maker . isinstance ( child , 'Terminal' ) : terminals [ child ] = child . get_allocation ( ) else : err ( 'Unknown child type %s' % type ( child ) ) return ( terminals )