OK, maybe a silly question. how do I list all the key/items in an indigo Dict? such as pluginProps.
tried .keys() and .items() and they are blank...
>>> d = indigo.Dict()
>>> d["a"] = 1
>>> d["b"] = 2
>>> d.keys()
[u'a', u'b']
>>> d.values()
[1, 2]
>>> d.items()
[(u'a', 1), (u'b', 2)]
>>> self.pluginPrefs
<indigo.Dict object at 0x10dfd2668>
>>> print(self.pluginPrefs)
Prefs : (dict)
bottomLabel : (string)
showDebugInfo : false (bool)
showThreadDebugInfo : false (bool)
topLabel : (string)
>>> self.pluginPrefs.keys()
[u'bottomLabel', u'showDebugInfo', u'showThreadDebugInfo', u'topLabel']
>>> self.pluginPrefs.values()
[u'', False, False, u'']
>>> self.pluginPrefs.items()
[(u'bottomLabel', u''), (u'showDebugInfo', False), (u'showThreadDebugInfo', False), (u'topLabel', u'')]
easydaqProps = dev.globalProps["com.perceptiveautomation.indigoplugin.easydaq-usb-relay-cards"]
Users browsing this forum: No registered users and 5 guests