reg = Region(20,30,40,50)
reg2 = Region(60,70,80,90)
reg.moveTo(reg)
当我运行该程序时,出现以下错误
TypeError: moveTo(): 1st arg can't be coerced to org.sikuli.script.Location
与moveTo()混淆,有人可以帮我吗?
最佳答案
Niccolo的答案是正确的。工作脚本示例:
reg = Region(20,30,40,50)
loc = Location(10,10)
reg.moveTo(loc)
“moveTo”文档:http://doc.sikuli.org/region.html
关于python - sikuli的moveTo()错误,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/16584560/