rs.GetBoolean() including a text field?

Here is the offending line of code:

reverse = rs.GetBoolean("Reverse?",(("Reverse", "no", "yes")), (False))

Which produces the following UI:


My question is: what is the textbox and why is it included with the GetBoolean call?

Hi @Jack_Minardi,

The rs.GetBoolean method uses a RhinoCommon GetOption object to display one or more toggleable options.

Internally, GetOption inherits from GetString. And since GetString display the edit field, so does GetOption.

Hope this helps.

– Dale

Is the text field used for anything?

No it is not…