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

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

    def f(group):
        if group:
            try:
                self.groupMap[group].cmd_toscreen()
            except KeyError:
                logger.info(u"No    group    named    '{0:s}'    present.".format(group))
    mb = self.widgetMap.get(widget)
    if (not mb):
        logger.warning("No    widget    named    '{0:s}'    present.".format(widget))
        return
    mb.startInput(prompt, f, 'group', strict_completer=True)
