(self, widget)
Group all terminals in the current tab
Group all terminals in the current tab
Group all terminals in the current tab
def group_tab(self, widget):
        """Group all terminals in the current tab"""
        maker = Factory()
        notebook = self.get_child()

        if not maker.isinstance(notebook, 'Notebook'):
            dbg('not in a notebook, refusing to group tab')
            return

        pagenum = notebook.get_current_page()
        while True:
            group = _('Tab %d') % pagenum
            if group not in self.terminator.groups:
                break
            pagenum += 1
        self.set_groups(group, self.get_visible_terminals())
def group_tab ( self , widget ) : maker = Factory ( ) notebook = self . get_child ( ) if not maker . isinstance ( notebook , 'Notebook' ) : dbg ( 'not in a notebook, refusing to group tab' ) return pagenum = notebook . get_current_page ( ) while True : group = _ ( 'Tab %d' ) % pagenum if group not in self . terminator . groups : break pagenum += 1 self . set_groups ( group , self . get_visible_terminals ( ) )