← 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

    Status: Open => Answered

RaiMan proposed the following answer:
--- mind this:
imagesAllRes.sikuli contains images for all resolutions AND the respective dictionaries containing the references to the images of a specific resolution.

This was the change to your code.

If you want to stick with your current imagesHiRes.sikuli:

import imagesHiRes
import imageDictWrapper

imgSet = imageDictWrapper.imageDict(theImageDict)

My suggestion was to change imagesHiRes.sikuli to imagesAllRes.sikuli
and theImageDict to imageDictHiRes in this module. So you could pack
other dictionaries like imageDictLowRes into imagesAllRes.sikuli, that
would reference the low resolution images for the same set of image name
indexes like "openButton". But it is totally up to you, how to make this
solution more generic and felexible.

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