← Back to team overview

sikuli-driver team mailing list archive

[Question #166273]: How to set global variables from methods or function?

 

New question #166273 on Sikuli:
https://answers.launchpad.net/sikuli/+question/166273

Here is my code in which i am getting error

value_not_found=0


def value_not_found():
	global value_not_found
	value_not_found=1

def valuefound():
	global value_not_found
        value_not_found=0


i call the function in another function def:

def check_value_found:
        value_not_found()


When i try to call a function i get this error:

TypeError: 'int' object is not callable

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.