-1

I want to align button to the right and create checkbox to the left. I want to display button and checkbox in one line .Thank you

Code:

import maya.cmds as cmds cmds.window( width=200 ) cmds.columnLayout( adjustableColumn=False ) cmds.button( label='Submit Job',width=130,align='right') cmds.checkBox(label='Scout Job') cmds.showWindow() 

Output enter image description here

Expected output enter image description here

1
  • Yeah, nice! Why didn't you made your pictures even less on even bigger canvas? Commented Dec 22, 2017 at 13:36

1 Answer 1

1

I've answered you on your previous question but you have to think your layouts :

import maya.cmds as cmds cmds.window( width=200 ) main = cmds.columnLayout( adjustableColumn=False ) submit_widget = cmds.rowLayout(numberOfColumns=2, p=main) cmds.checkBox(label='Scout Job', p=submit_widget) cmds.button( label='Submit Job',width=130,align='right', p=submit_widget) cmds.showWindow() 

EDIT : here were the layouts highlighted from

Not getting expected output in Maya python scripting for gui enter image description here

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.