当前位置: 首页>>代码示例>>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;未经允许,请勿转载。