本文整理匯總了Python中org.sikuli.script.Screen.toStringShort方法的典型用法代碼示例。如果您正苦於以下問題:Python Screen.toStringShort方法的具體用法?Python Screen.toStringShort怎麽用?Python Screen.toStringShort使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.sikuli.script.Screen
的用法示例。
在下文中一共展示了Screen.toStringShort方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: use
# 需要導入模塊: from org.sikuli.script import Screen [as 別名]
# 或者: from org.sikuli.script.Screen import toStringShort [as 別名]
def use(scr=None, remote=False):
global SCREEN
if remote:
theGlobals = inspect.currentframe().f_back.f_back.f_globals
else:
theGlobals = inspect.currentframe().f_back.f_globals
global remoteScreen
if remoteScreen:
remoteScreen.close()
remoteScreen = None
if not scr:
SCREEN = JScreen()
else:
SCREEN = scr
Debug.log(3, "Jython: requested to use as default region: " + SCREEN.toStringShort())
globals()['SIKULISAVED'] = _exposeAllMethods(SCREEN, globals().get('SIKULISAVED'), theGlobals, None)
theGlobals['SCREEN'] = SCREEN
if remote:
remoteScreen = SCREEN
return SCREEN