Python: with someRegion: inside with block someRegion gets what SCREEN is outside
Asked by
Rainer
The following code
print(SCREEN)
with Region(1, 2, 3, 4):
print(SCREEN)
print(Screen())
print(SCREEN)
results in:
R[0,0 1680x1050]@S(0)
R[1,2 3x4]@S(0)
R[0,0 1680x1050]@S(0)
R[0,0 1680x1050]@S(0)
Within a "with" Region, the SCREEN variable obviously points to the "with" Region, and is afterwards reassigned the Screen() Region.
Is this the intended behavior?
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- RaiMan
- Solved:
- Last query:
- Last reply:
To post a message you must log in.