當前位置: 首頁>>代碼示例>>Python>>正文


Python Screen.all方法代碼示例

本文整理匯總了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()
開發者ID:ElMachito,項目名稱:SikuliX-2014,代碼行數:6,代碼來源:Sikuli.py

示例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")
開發者ID:Barath-81,項目名稱:SikuliX-2014,代碼行數:32,代碼來源:Sikuli.py

示例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")

開發者ID:ElMachito,項目名稱:SikuliX-2014,代碼行數:31,代碼來源:Sikuli.py

示例4: all

# 需要導入模塊: from org.sikuli.script import Screen [as 別名]
# 或者: from org.sikuli.script.Screen import all [as 別名]
 def all(cls):
     return JScreen.all()
開發者ID:Barath-81,項目名稱:SikuliX2,代碼行數:4,代碼來源:Screen.py


注:本文中的org.sikuli.script.Screen.all方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。