Eto Label Constructor: No overload for method 'Label'

Hey all, I’m new to new to Rhino Python development, and I can’t seem to be able to run the sample code:

self.DefaultButton = forms.Button(Text = "Select Objects")
TypeError: No overload for method ‘Label…ctor{}’ takes ‘0’ arguments()

What did I miss? Thanks!

@Steven_Nie,

Try this instead:

self.DefaultButton = forms.Button()
self.DefaultButton.Text = "Select Objects"
2 Likes