Пример #1
0
def select(msg="", title="Sikuli Selection", options=(), default=None):
    optionsLen = len(options)
    if optionsLen == 0:
        return ""
    try:
        ndefault = 0 + default
        if ndefault > -1 and ndefault < optionsLen:
            default = options[ndefault]
    except:
        pass
    #return Sikulix.popSelect(msg, title, options, default)
    optionString = ""
    for option in options:
        optionString += str(len(option) + 1000) + option
    return Do.popSelect(msg, title, default, optionString)
Пример #2
0
def popFile(title="Select File or Folder"):
    #return Sikulix.popFile(title)
    return Do.popFile("", title)
Пример #3
0
def input(msg="", default="", title="Sikuli Input", hidden=False):
    if (hidden):
        default = ""
    #return Sikulix.input(msg, default, title, hidden)
    return Do.input(msg, title, default, hidden)
Пример #4
0
def popAsk(msg, title="Sikuli Decision"):
    #return Sikulix.popAsk(msg, title)
    return Do.popAsk(msg, title)
Пример #5
0
def popError(msg, title="Sikuli Error"):
    #Sikulix.popError(msg, title)
    Do.popError(msg, title)
Пример #6
0
def popup(msg, title="Sikuli Info"):
    #Sikulix.popup(msg, title)
    Do.popup(msg, title)