← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #163900]: Function to select image dict.

 

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

RaiMan posted a new comment:
Yes, the solution is suitable, since it works and satisfies your needs.

But I would have packed the class ImageDict together with the image
dictionaries, so e.g.

import imageDictionaries

would be the only thing to do, to get access to the dicts.

The class should provide a management interface (define and fill
dictionaries, save them to disc, ...) and an access interface to get the
images into the workflow.

With this you have all options to hide the type and the management of
the dictionaries. So one dictionary might be hard coded in the file,
another might be loaded from a file using YAML or it might even be
loaded from the Web.

The user of imageDictionaries does not care.

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