本文整理汇总了Python中org.sikuli.script.Sikulix类的典型用法代码示例。如果您正苦于以下问题:Python Sikulix类的具体用法?Python Sikulix怎么用?Python Sikulix使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Sikulix类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: exit
def exit(code=0):
global remoteScreen
if remoteScreen:
remoteScreen.close()
remoteScreen = None
Sikulix.cleanUp(code)
sys.exit(code)
示例2: popat
def popat(*args):
if len(args) == 0:
return Sikulix.popat()
elif len(args) > 1:
return Sikulix.popat(args[0], args[1])
else:
return Sikulix.popat(args[0])
示例3: select
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)
示例4: select
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)
示例5: inputText
def inputText(msg="", title="Sikuli Text", lines=0, width=0):
return Sikulix.inputText(msg, title, width, lines)
示例6: input
def input(msg="", default="", title="Sikuli Input", hidden=False):
if (hidden):
default = ""
return Sikulix.input(msg, default, title, hidden)
示例7: popAsk
def popAsk(msg, title="Sikuli Decision"):
return Sikulix.popAsk(msg, title)
示例8: popError
def popError(msg, title="Sikuli Error"):
Sikulix.popError(msg, title)
示例9: popup
def popup(msg, title="Sikuli Info"):
Sikulix.popup(msg, title)
示例10: useVnc
def useVnc(ip="127.0.0.1", port=5900, connectionTimeout=10, timeout=1000, password=None):
use(Sikulix.vncStart(ip, port, password, connectionTimeout, timeout), True)
示例11: popFile
def popFile(title = "Select File or Folder"):
return Sikulix.popFile(title)
示例12: inputText
def inputText(msg="", title="", lines=0, width=0, text=""):
return Sikulix.inputText(msg, title, lines, width, text)
示例13: input
def input(msg="", default="", title="Sikuli Input", hidden=False):
Debug.log(3, "Sikuli.py: input")
if hidden:
default = ""
return Sikulix.input(msg, default, title, hidden)
示例14: vncStart
def vncStart(ip="127.0.0.1", port=5900, connectionTimeout=10, timeout=1000, password=None):
return Sikulix.vncStart(ip, port, password, connectionTimeout, timeout)
示例15: vncStart
def vncStart(ip="127.0.0.1", port=5900, connectionTimeout=10, timeout=1000):
return Sikulix.vncStart(ip, port, connectionTimeout, timeout)