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)
def popFile(title="Select File or Folder"): #return Sikulix.popFile(title) return Do.popFile("", title)
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)
def popAsk(msg, title="Sikuli Decision"): #return Sikulix.popAsk(msg, title) return Do.popAsk(msg, title)
def popError(msg, title="Sikuli Error"): #Sikulix.popError(msg, title) Do.popError(msg, title)
def popup(msg, title="Sikuli Info"): #Sikulix.popup(msg, title) Do.popup(msg, title)