Many errors when using ui.status example?

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.

Do you want to email the test case to support@derivative.ca or post an example here?
I can’t reproduce the error.
Seems to be coming from somewhere else, where some expression (possibly op pointing to a DAT or CHOP) is evaluating to None, and then you’re trying to access some element of it with the [ ] bracket operators.

Thanks Rob,

Cutting and pasting got rid of this, not sure why. I will try again and post if there is still an error.

Thanks