(self, widget, vertical=True, cwd=None, sibling=None,
            widgetfirst=True)
Default axis splitter. This should be implemented by subclasses
Default axis splitter. This should be implemented by subclasses
Default axis splitter . This should be implemented by subclasses
def split_axis(self, widget, vertical=True, cwd=None, sibling=None,
            widgetfirst=True):
        """Default axis splitter. This should be implemented by subclasses"""
        order = None

        self.remove(widget)
        if vertical:
            container = VPaned()
        else:
            container = HPaned()
        
        self.get_toplevel().set_pos_by_ratio = True

        if not sibling:
            sibling = self.maker.make('terminal')
            sibling.set_cwd(cwd)
            if self.config['always_split_with_profile']:
                sibling.force_set_profile(None, widget.get_profile())
            sibling.spawn_child()
            if widget.group and self.config['split_to_group']:
                sibling.set_group(None, widget.group)
        elif self.config['always_split_with_profile']:
            sibling.force_set_profile(None, widget.get_profile())

        self.add(container)
        self.show_all()

        order = [widget, sibling]
        if widgetfirst is False:
            order.reverse()

        for terminal in order:
            container.add(terminal)

        self.show_all()
        sibling.grab_focus()
        
        while Gtk.events_pending():
            Gtk.main_iteration_do(False)
        self.get_toplevel().set_pos_by_ratio = False
def split_axis ( self , widget , vertical = True , cwd = None , sibling = None , widgetfirst = True ) : order = None self . remove ( widget ) if vertical : container = VPaned ( ) else : container = HPaned ( ) self . get_toplevel ( ) . set_pos_by_ratio = True if not sibling : sibling = self . maker . make ( 'terminal' ) sibling . set_cwd ( cwd ) if self . config [ 'always_split_with_profile' ] : sibling . force_set_profile ( None , widget . get_profile ( ) ) sibling . spawn_child ( ) if widget . group and self . config [ 'split_to_group' ] : sibling . set_group ( None , widget . group ) elif self . config [ 'always_split_with_profile' ] : sibling . force_set_profile ( None , widget . get_profile ( ) ) self . add ( container ) self . show_all ( ) order = [ widget , sibling ] if widgetfirst is False : order . reverse ( ) for terminal in order : container . add ( terminal ) self . show_all ( ) sibling . grab_focus ( ) while Gtk . events_pending ( ) : Gtk . main_iteration_do ( False ) self . get_toplevel ( ) . set_pos_by_ratio = False