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

2017-07-07 Thread arminius
New question #646899 on Sikuli: https://answers.launchpad.net/sikuli/+question/646899 centerX = 607 ml = Env.getMouseLocation() total = ml.getX+centerX() print total() But I get the error message that is in the Summary, what does it mean by int? -- You received this question notification becaus

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

2017-07-07 Thread Manfred Hampl
Question #646899 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/646899 Status: Open => Answered Manfred Hampl proposed the following answer: What is centerX - a function or an integer variable? It it is an int, then you must not add brackets "()" and the same for total. --

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

2017-07-07 Thread arminius
Question #646899 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/646899 Status: Answered => Open arminius is still having a problem: ok, I got rid of the brackets. so now it's "ml = Env.getMouseLocation() total = ml.getX+centerX print ml.getX() print total" now it's returni

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

2017-07-08 Thread Manfred Hampl
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 fun

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

2017-07-08 Thread Manfred Hampl
Question #646899 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/646899 Manfred Hampl proposed the following answer: Oops, sorry, now I ommitted brackets, it must of course be ml = Env.getMouseLocation() total = ml.getX() + centerX print ml.getX() print total -- You received t

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

2017-07-09 Thread arminius
Question #646899 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/646899 Status: Answered => Solved arminius confirmed that the question is solved: Thanks Manfred Hampl, that solved my question. -- You received this question notification because your team Sikuli Drivers is