← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #162999]: Using dictionaries

 

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

RaiMan proposed the following answer:
sorry for my blindness :-(

you either have to use 
from imagesAllRes import *

or qualify the dict with imagesAllRes
imgSet = imageDictWrapper.imageDict(imagesAllRes.theImageDictHiRes)

I suggest the second solution, to not have any naming conflicts in the
future. The first solution copies all names defined in
imagesAllRes.sikuli in your main namespace (which is not really needed
in your case).

*** one more things:
-- theImageDictHiRes {} should read theImageDictHiRes = {} (makes it an empty dictionary)

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