Subregion is not defined in 0.10

Asked by chimanfu

got this error when running in 0.10, how to fix it?
we may want to be fully compatible with previous version of sikuli.

[sikuli] Stopped
[sikuli] An error occurs at line 210
[sikuli] Error message:
Traceback (most recent call last):
  File "C:\DOCUME~1\jfu\LOCALS~1\Temp\sikuli-tmp3191341898822436887.py", line 210, in <module>
    frontPageRegion=Subregion(443,431,591,196)
NameError: name 'Subregion' is not defined

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
chimanfu
Solved:
Last query:
Last reply:
Revision history for this message
chimanfu (jfu) said :
#1

I just tried to rename Subregion to Region and it's still not working.
Basically I can't use 0.10 for my scripts.

Revision history for this message
chimanfu (jfu) said :
#2

this is resovled. thx.

Revision history for this message
WeiKeong (weikeong86) said :
#3

chimanfu:
How you solve the problem? Facing the same problem here

Revision history for this message
Tsung-Hsiang Chang (vgod) said :
#4

Simply replace all Subregion with Region should work.