sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #03671
Re: [Question #162999]: Using dictionaries
Question #162999 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/162999
Status: Answered => Open
Calle Rundgren is still having a problem:
This is my wrapper:
And this is supposed to execute the wrapper:
from imagesHiRes import*
class imageDictWrapper():
def __init__(self, images, imageSet = "HiRes"):
self.images = theImageDict
def getImage(self, imageName):
return images[imageName]
sikuliPath = r"c:\sikuli"
if not sikuliPath in sys.path: sys.path.append(sikuliPath)
import imagesHiRes
import imageDictWrapper
imgSet = imageDictWrapper.imageDictWrapper("HiRes")
click(imgSet.getImage("openButton"))
I have got some different errors, the error I got now is: NameError:
global name 'images' is not defined
Where am I supposed to define 'images'?
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.