What method can be used to choose from a list on Mac?

Right now it seems that all the rhinoscriptsyntax listbox methods call a member of Rhino.UI.Dialogs, all of which seem to use WindowsForms at some point, all of which crash MacRhino (have to force quit)… Is there ANY method that might work for a script on a Mac that allows the user to choose an item from a list?

The only thing that works right now that I have tested is GetString with a list of strings… Kind of a kludge…

–Mitch

I guess you could tie in any Python UI framework and use it to create a dialog window in which a user can select a value. Use maybe wxPython or Kivy - these are cross platform and will work on Windows too. http://kivy.org http://www.wxpython.org

Thanks - wouldn’t that require that users who run the script also have either Kivy or wxPython installed?

–Mitch

That would be a requirement and I highly doubt you are going to get any of this to work. I need to fix these functions in RhinoCommon to be cross-platform.

OK, thanks Steve, so I guess GetString is it…
Cheers, --Mitch

For now, that would be it. If you have a list of options, you could use GetOption