Question #646899 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/646899

    Status: Open => Answered

Manfred Hampl proposed the following answer:
You need to get better in python basics.

You have to understand the difference between using variables (no
brackets) and calling functions (need brackets).

Look at your code:
...
total = ml.getX+centerX
print ml.getX()
...
In the second line ml.getX has brackets, but in the first line it hasn't.
This cannot be correct in python syntax.

I assume the correct statements are

ml = Env.getMouseLocation()
total = ml.getX() + centerX
print ml.getX
print total

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to