(self, widget)
Actually cause a group to be created
Actually cause a group to be created
Actually cause a group to be created
def groupentry_activate(self, widget):
        """Actually cause a group to be created"""
        groupname = self.groupentry.get_text() or None
        dbg('Titlebar::groupentry_activate: creating group: %s' % groupname)
        self.groupentry_cancel(None, None)
        last_focused_term=self.terminator.last_focused_term
        if self.terminal.targets_for_new_group:
            [term.titlebar.emit('create-group', groupname) for term in self.terminal.targets_for_new_group]
            self.terminal.targets_for_new_group = None
        else:
            self.emit('create-group', groupname)
        last_focused_term.grab_focus()
        self.terminator.focus_changed(last_focused_term)
def groupentry_activate ( self , widget ) : groupname = self . groupentry . get_text ( ) or None dbg ( 'Titlebar::groupentry_activate: creating group: %s' % groupname ) self . groupentry_cancel ( None , None ) last_focused_term = self . terminator . last_focused_term if self . terminal . targets_for_new_group : [ term . titlebar . emit ( 'create-group' , groupname ) for term in self . terminal . targets_for_new_group ] self . terminal . targets_for_new_group = None else : self . emit ( 'create-group' , groupname ) last_focused_term . grab_focus ( ) self . terminator . focus_changed ( last_focused_term )