'Utility function for quick retrieval of a widget by name.'

def get(self, q, name):

    w = q.widgetMap.get(name)
    if (not w):
        raise command.CommandError(('No    such    widget:    %s' % name))
    return w
