New question #187286 on Sikuli:
https://answers.launchpad.net/sikuli/+question/187286
Hello,
I'm trying to found a way to get my tuple name.
I created image tuple then for my code I need to get the name. I already known
the tuple name but instead enter it twice I would like to get it in my code.
I have a piece of code but in case image file have same name I get wrong tuple
name. Can someone help me.
for key,value in globals().items():
if isinstance(MY_TUPLE, tuple) and value == MY_TUPLE:
print("key is: " + key)
list_name = key
#break
else:
print("no key found")
Thanks in advance.
Original code can be found here:
http://bytes.com/topic/python/answers/854009-how-get-name-list
--
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