本文整理匯總了Python中org.sikuli.script.Screen.all方法的典型用法代碼示例。如果您正苦於以下問題:Python Screen.all方法的具體用法?Python Screen.all怎麽用?Python Screen.all使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.sikuli.script.Screen
的用法示例。
在下文中一共展示了Screen.all方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: reset
# 需要導入模塊: from org.sikuli.script import Screen [as 別名]
# 或者: from org.sikuli.script.Screen import all [as 別名]
def reset():
JScreen.resetMonitors();
use();
ALL = JScreen.all()
示例2: dir
# 需要導入模塊: from org.sikuli.script import Screen [as 別名]
# 或者: from org.sikuli.script.Screen import all [as 別名]
]
# Debug.log(3, "Sikuli: _exposeAllMethods: %s called from: %s", anyObject, theGlobals['__name__'])
tosave = []
if not saved:
saved = []
for name in dir(anyObject):
if name in exclude_list: continue
try:
if not inspect.ismethod(getattr(anyObject, name)): continue
except:
continue
if name[0] != '_' and name[:7] != 'super__':
try:
saved.remove(name)
except:
pass
tosave.append(name)
# print "added:", name
theGlobals[name] = eval("anyObject." + name)
if name == 'checkWith': Debug.log(3, "%s %s", name, str(dict[name])[1:])
for name in saved:
if name in theGlobals:
# print "removed:", name
theGlobals.pop(name)
return tosave
############### set SCREEN as primary screen at startup ################
use()
ALL = JScreen.all().getRegion()
Debug.log(3, "Jython: sikuli: Sikuli: ending init")
示例3: dir
# 需要導入模塊: from org.sikuli.script import Screen [as 別名]
# 或者: from org.sikuli.script.Screen import all [as 別名]
#Debug.log(3, "Sikuli: _exposeAllMethods: %s called from: %s", anyObject, theGlobals['__name__'])
tosave = []
if not saved:
saved = []
for name in dir(anyObject):
if name in exclude_list: continue
try:
if not inspect.ismethod(getattr(anyObject,name)): continue
except:
continue
if name[0] != '_' and name[:7] != 'super__':
try:
saved.remove(name)
except:
pass
tosave.append(name)
#print "added:", name
theGlobals[name] = eval("anyObject."+name)
if name == 'checkWith': Debug.log(3, "%s %s", name, str(dict[name])[1:])
for name in saved:
if name in theGlobals:
#print "removed:", name
theGlobals.pop(name)
return tosave
############### set SCREEN as primary screen at startup ################
use()
ALL = JScreen.all()
Debug.log(3, "Jython: sikuli: Sikuli: ending init")
示例4: all
# 需要導入模塊: from org.sikuli.script import Screen [as 別名]
# 或者: from org.sikuli.script.Screen import all [as 別名]
def all(cls):
return JScreen.all()