← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #264563]: How to get a final sorted match list after more than one findAll()

 

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

RaiMan proposed the following answer:
aaah, your "bug" and list usage

--- AllImg.append(WhtNumImg) adds a new element to the list, but not the elements of the list.
What you need is:
AllImg.extend(sortedMatchesD) # see docs ;-)

to avoid the not exist problem:
sortedMatchesA = []

add it somewhere at the beginning for each sorted...
So you have at least an empty list in all cases.

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