← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #268089]: Concatenate a variable to another variable name

 

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

RaiMan proposed the following answer:
--- Doesn't work.
… surely works, but might not do what you want ;-)

myVar = [] # empty list (array)
for icon in all_icons: # here runs at least 3 times
        ...
        myVar.append(App.getClipboard().strip().encode("utf-8"))

print myVar # should print something like
[u'some text', u"some other text", …]

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