Hi,
I’m hoping this all makes sense. I can’t exactly show everything so I’m trying to describe it as best I can. With the help of the forums and using my own brain the tool I’m working on for the office and personal use is coming along nicely, I’m looking at the layout and while it’s almost perfect for what it’s not quite there.
I have three frames, Top, left, right. The right side is a set width and the left side can expand when the window is made bigger. I can’t figure out how to get my buttons to automatically fill in the extra space as the window is expanded.
When the tool opens it looks like this

When you expand the window you get this

I understand that I’m using a rowColumnLayout and have my number of columns set to 4 so there will always be 4 columns. I don’t know what I could use in place of that though, and if I don’t set the number of columns it places them one on top of another, and with 40ish buttons that gets long.
All my buttons are listed in an array
ButtonsList = [(buttonName, buttonIcon),(buttonName, buttonIcon),(buttonName, buttonIcon), etc, etc]
and a for loop goes through that array to populate the buttons.
cmds.rowColumnLayout()
for index in range(len(ButtonsList)):
cmds.iconTextButton(h=128,
w=96, style='iconAndTextVertical',
label = ButtonsList[0],
i=ButtonsList[1],)
cmds.setParent("..")
Is there something other than a row column layout I can use that will auto arrange the buttons?
Thanks