sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #03687
Re: [Question #162999]: Using dictionaries
Question #162999 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/162999
Status: Answered => Solved
Calle Rundgren confirmed that the question is solved:
I found the Error. The solution now looks like:
he wrapper:
from sikuli.Sikuli import *
class imageDict():
def __init__(self, imageSet):
self.images = imageSet
def getImage(self, imageName):
return self.images[imageName]
To execute the wrapper:
sikuliPath = r"c:\sikuli"
if not sikuliPath in sys.path: sys.path.append(sikuliPath)
import imagesAllRes
import imageDictWrapper
imgSet = imageDictWrapper.imageDict(imagesAllRes.theImageDictHiRes)
click(imgSet.getImage("openButton"))
Thanks for additional help! :-)
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.