Hi I am trying to use the following code with the ui module
[code]a = ui.messageBox(‘Please select:’, ‘Nodes:’, buttons=me.parent().children)
ui.messageBox(‘Results’, 'You selected item: ’ + str(a))
print(a)
print(str(a))
[/code]
This is copied almost verbatim from the example here: [url]http://www.derivative.ca/wiki088/index.php?title=UI_Class[/url]
The code works, it prints my index but then I get the following error (about 25 times in the textport)
Traceback (most recent call last):
File "", line 1, in <module>
TypeError: 'NoneType' object is not subscriptable
td.error: Float value expected.
Not sure what is causing this and I am not sure what “” is.