← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #646899]: [error] TypeError ( 'int' object is not callable )

 

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.