def draw(control):
    decoration = (u'v' if control[u'dict'][control[u'name']] else u'^')
    if (control[u'dict'][control[u'name']] is None):
        decoration = u'-'
    if (control[u'width'] < 0):
        return (u'%s %s' % (control[u'name'], decoration))
    return (u'%s %s' % (decoration, control[u'name']))
def draw(control):
    decoration = (u'v' if control[u'dict'][control[u'name']] else u'^')
    if (control[u'dict'][control[u'name']] is None):
        decoration = u'-'
    if (control[u'width'] < 0):
        return (u'%s %s' % (control[u'name'], decoration))
    return (u'%s %s' % (decoration, control[u'name']))