Hi I need a Full example for Tree Grid for Iron.python as mine will not run in Rhino 8 Python 3 which is what I need. In fact I struggle to get any ETO forms running in Python 3 so I must be doing something fundamentally wrong, that is why I could do with a FULL example of getting an ETO form to run in Python 3 so any eto control would probably do.
If McNeel could add some full examples it would be a great help as the ones on GitHub don’t seem to work either.
Hi @RogerD ,
Under your class declaration(s) add super like this:
class MyClass():
def __init__(self):
super(self).__init__
Or
class MyClass():
def __init__():
super().__init__
Additionally I would add:
#! python3
At the top of your file.
If executing .py generically it will run it as Py3 this way.
You can also save as Py3 if I recall correctly.
I believe they are working on updated Eto documentation. No idea on the timeframe on that but that’s what I read on the forums somewhere.
Thanks I think I will need the new documentation as well total newbie here with ETO and it is not clear in Python3
This has the new rhino 8 python 3 sample with updated init code: https://developer.rhino3d.com/guides/rhinopython/eto-forms-python/
It should work copy and paste.
I can test the grid view on Monday. Rhino - Eto Controls in Python
Hi Scott any help you can give will be appreciated.
Roger
Hi Scott did you get a chance to look at this ?
Working on it. That control specifically changed a lot from the examples, so we are re-writing it.
Hi Scott glad it was not just me then.
Roger