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


#1

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


(Menno Deij - van Rijswijk) #2

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


#3

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

–Mitch


(Steve Baer) #4

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.


#5

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


(Steve Baer) #6

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