← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #189351]: How To use global variables in Sikuli scripts

 

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

Summary changed to:
How To use global variables in Sikuli scripts

Description changed to:
The personal solution was to use global variables in this case (not
really needed).

So I wrote a comment about global variables (comment #2)

----------------------------------------------------------------------------------

Need to find out how to pass the return of one function as an argument
for a second function.

Example:
def displayText():
    text = 'Hello World'
    print(text)
    return (text)

def displayTextTwo(texttwo):
        print(texttwo)

displayText()
displayTextTwo(text)

Output:
Hello World

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