Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5745

ETO Forms Group Box

$
0
0

@eric.bunn wrote:

Hi,

I’m trying to contruct a form in Rhino 6 (python) and going through the examples here:

I get an error when I try to put in a group box. I’m using the following code:

Create a group box

    self.m_groupbox = forms.GroupBox(Text = 'Groupbox')
    self.m_groupbox.Padding = drawing.Padding(5)
    
    grouplayout = forms.DynamicLayout()
    grouplayout.Spacing = Size(3, 3)

Here is the error:

Message: global name ‘Size’ is not defined

Traceback:
line 26, in init, “C:\Users\bunner\OneDrive - Sealed Air Corporation\Computer\Desktop\Test User Form\Rhino ETO Example.py”
line 132, in RequestRoomNumber, “C:\Users\bunner\OneDrive - Sealed Air Corporation\Computer\Desktop\Test User Form\Rhino ETO Example.py”
line 145, in , “C:\Users\bunner\OneDrive - Sealed Air Corporation\Computer\Desktop\Test User Form\Rhino ETO Example.py”

It doesn’t appear to like the line grouplayout.Spacing = Size(3, 3)

Thanks for the help.

Eric

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 5745

Trending Articles