Пример #1
0
def select(msg="", title="Sikuli Selection", options=(), default=None):
    if len(options) == 0:
        return ""
    if default:
        if not __builtin__.type(default) is types.StringType:
            try:
                default = options[default]
            except:
                default = None
    return Sikulix.popSelect(msg, title, options, default)
Пример #2
0
def select(msg="", title="Sikuli Selection", options=(), default=None):
    if len(options) == 0:
        return ""
    if default:
        if not __builtin__.type(default) is types.StringType:
            try:
                default = options[default]
            except:
                default = None
    return Sikulix.popSelect(msg, title, options, default)
Пример #3
0
def select(msg="", title="Sikuli Selection", options=(), default=None):
    optionsLen = len(options)
    if optionsLen == 0:
        return ""
    try:
        default = 0 + default
        if default > -1 and default < optionsLen:
            default = options[default]
        else:
            default = None
    except:
        pass
    return Sikulix.popSelect(msg, title, options, default)
Пример #4
0
def select(msg="", title="Sikuli Selection", options=(), default=None):
    optionsLen = len(options)
    if optionsLen == 0:
        return ""
    try:
        default = 0 + default
        if default > -1 and default < optionsLen:
            default = options[default]
        else:
            default = None
    except:
        pass
    return Sikulix.popSelect(msg, title, options, default)