'Launch prompt widget to move current window to a given group
Parameters
prompt :
Text with which to prompt user (default: "group")
widget :
Name of the prompt widget (default: "prompt")'

def cmd_togroup(self, prompt='group', widget='prompt'):

    if (not self.currentWindow):
        logger.warning('No    window    to    move')
        return
    mb = self.widgetMap.get(widget)
    if (not mb):
        logger.error("No    widget    named    '{0:s}'    present.".format(widget))
        return
    mb.startInput(prompt, self.moveToGroup, 'group', strict_completer=True)
