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.

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to