Eto form with multiple tabs

Following @dale sample scripts I was able to create a form using Eto library and IronPython in Rhino 6.

Now I want to add one more tab to this form. Does anyone have a sample code for a multi-tab form created using Eto?

Hi @Mostapha,

This isn’t anything fancy but you can start with this:

https://github.com/mcneel/rhino-developer-samples/blob/6/rhinopython/SampleEtoTabbedDialog.py

Note, no making fun of my Python coding style. :wink:

– Dale

6 Likes

Beautiful! Thanks. :slight_smile:

Never! :wink:

HI Dale,

I’d like to do the same thing in Rhino v8 (python 3.9.10) but the code example you created no longer works. Are you able to provide an update for this? Thanks.

Regards,
Shane.

Hi @shanew06, here is a simplified one which seems to work in Python 3:

Eto_TabPage_Python3.py (2.1 KB)

_
c.

Legend!

Thanks very much for your super fast response.

Shane.

One more thing…

If I want to add a series of controls onto one of the Tab Pages, do I set the Tab Page “Content” property to a layout, container, or something out?

Thanks again.

Shane.

1 Like

You set it to a layout.

Perfect. Thanks!

1 Like