(self, recurse_up=False, recurse_down=False)
Evenly divide available space between sibling panes
Evenly divide available space between sibling panes
Evenly divide available space between sibling panes
def do_redistribute(self, recurse_up=False, recurse_down=False):
        """Evenly divide available space between sibling panes"""
        maker = Factory()
        #1 Find highest ancestor of the same type => ha
        highest_ancestor = self
        while type(highest_ancestor.get_parent()) == type(highest_ancestor):
            highest_ancestor = highest_ancestor.get_parent()

        highest_ancestor.set_autoresize(False)
        
        # (1b) If Super modifier, redistribute higher sections too
        if recurse_up:
            grandfather=highest_ancestor.get_parent()
            if maker.isinstance(grandfather, 'VPaned') or \
               maker.isinstance(grandfather, 'HPaned') :
                grandfather.do_redistribute(recurse_up, recurse_down)

        highest_ancestor._do_redistribute(recurse_up, recurse_down)

        GObject.idle_add(highest_ancestor.set_autoresize, True)
def do_redistribute ( self , recurse_up = False , recurse_down = False ) : maker = Factory ( ) #1 Find highest ancestor of the same type => ha highest_ancestor = self while type ( highest_ancestor . get_parent ( ) ) == type ( highest_ancestor ) : highest_ancestor = highest_ancestor . get_parent ( ) highest_ancestor . set_autoresize ( False ) # (1b) If Super modifier, redistribute higher sections too if recurse_up : grandfather = highest_ancestor . get_parent ( ) if maker . isinstance ( grandfather , 'VPaned' ) or maker . isinstance ( grandfather , 'HPaned' ) : grandfather . do_redistribute ( recurse_up , recurse_down ) highest_ancestor . _do_redistribute ( recurse_up , recurse_down ) GObject . idle_add ( highest_ancestor . set_autoresize , True )