4
$\begingroup$

I'm trying to create a split column inside a box. Seems pretty simple but I just can't figure it out...any ideas?

For example, I would all of the below in a layout.box()

enter image description here

$\endgroup$
7
  • $\begingroup$ Could you add more information about your final goal and how you intend to reach it? $\endgroup$
    – Carlo
    Jul 21 '16 at 19:47
  • $\begingroup$ Well it seems pretty obvious to me but I'll add a little bit more if you wish $\endgroup$
    – mr-matt
    Jul 21 '16 at 19:48
  • $\begingroup$ Yes, just like that. My script has a box = layout.box() but it doesn't work with the aligned split columns in my script, I'm trying to change it now to see if it works... $\endgroup$
    – mr-matt
    Jul 21 '16 at 20:30
  • $\begingroup$ The thing is I have multiple boxes, how would I go about doing this for just one box? Using the layout = layout.box() does it for the whole thing... $\endgroup$
    – mr-matt
    Jul 21 '16 at 20:34
  • 1
    $\begingroup$ This eg puts Column 2 in a box too pasteall.org/72269/python $\endgroup$
    – batFINGER
    Jul 21 '16 at 20:50
1
$\begingroup$

you can stack layouts, as each of the container layout elements can host other containers:

    layout = self.layout
    box = layout.box()

    # put a column layout into the box
    col = box.column(align = True)

    # also separators work
    col.separator()

    # add a row layout into the column, which is inside the box, which is inside a panel,.....
    row = col.row(align = True)
    row.operator(**example**)
    row.operator(**example**)
$\endgroup$
1
  • $\begingroup$ Thats good, but they are aligning horizontally, I want them to align vertically, like the above image in 'Column Two'. $\endgroup$
    – mr-matt
    Jul 21 '16 at 19:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.