I’m starting to get my head around Python, but trying to find a way to access som eGUI elements that could be combined together in a simply form/dialog?
I’ve installed Atom and have seen references to Tkinter as a library, but not sure how to import that into Atom for use? Radio buttons, text box, numbers…
I’ve looked at the Meier_UI_Utility also, but think it might be windows only?
Hi Adrian,
Tkinter isn’t going to work. I would recommend using Eto for creating user interface; unfortunately I don’t think we have any good examples of how to do this yet. @curtisw, do we have python samples for some hello world type Eto UI?
Hi, Eto is going to be the future here with RhinoPython, I think, though I haven’t looked at it in a while.
Look here and try editBox for a start. I use this in combo with raw_input to get info within python. I usually use it to print Text info into my files.
There’s no examples of how to use Eto in python yet other than this mini sample I posted a while ago. I can put together some more, but I’d need some direction on what type of samples would be most useful.
Thanks Curtis, I don’t think it is too necessary at this point in time relative to the other tons of work that you have Rereading the initial post, I think getting the user starting with our existing user interface elements that are available in rhinoscriptsyntax is the proper route to take. This is what @rhinorudi was referring to.
I’m hoping for a bit more than just matching the rhinoscript limited GUI.
I’m looking to put multiple objects on a single form ideally, which the tkinter one seemed to do.
I’m guessing that is what eto is intended to do? I can’t get the sample to load - there was a note that it came with Rhino Mac, I have the new version installed as of today.
[quote=“curtisw, post:4, topic:21188, full:true”] but I’d need some direction on what type of samples would be most useful.
[/quote]
how to make this:
not really asking how to make that…
just wondering if it’s possible now to get similar functionality with Eto or if you think it will be possible in the future?
It isn’t at the top of anyone’s list at the moment. We are currently working on new documentation for writing plug-ins on Mac, but that is really focused more toward C# development.
I tried the sample again, and it seems iron python is having trouble importing some types from the Eto.Forms namespace. I fixed it by importing the used types directly. I’m sure these types of issues will be flushed out when this is supported, but I’ve updated the sample with a bit more functionality so you can see how to layout controls and get a value from a text box: