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
Expected Output
Solved! Go to Solution.
Solved by rajasekaransurjen. Go to Solution.
This will work
import maya.cmds as cmds
cmds.window( width=200 )
cmds.rowLayout( numberOfColumns=2 )
cmds.checkBox(label='Scout Job')
cmds.button( label='Submit Job',width=130,align='right')
cmds.showWindow()
Is it possible to align label within a button using MEL/Maya Commands?
Autodesk's UI menu has alignment to left and added margin.
Can't find what you're looking for? Ask the community or share your knowledge.