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

Mark posted a new comment:
Here's the working code for anyone who's interested

def enum(*sequential, **named):
        enumDict = dict(zip(sequential, range(len(sequential))), **named)
        module = __import__('__builtin__')
        value = module.__dict__['type']('Enum', tuple([object]), enumDict)
        return value

states = enum('ONE', 'TWO', 'THREE')

-- 
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