TB1 Week 3


this  week  we learnt how to make a window  with buttons that have a function the code need for this is:

window = cmds.window( title="Long Name", iconName='Short Name', widthHeight=(200, 55) )

cmds.columnLayout( adjustableColumn=True )

cmds.button( label='Do Nothing' )

cmds.button( label='Close', command=('cmds.deleteUI(\"' + window + '\", window=True)') )

cmds.setParent( '..' )

cmds.showWindow( window )

this makes a GUI appear that you can add functions to the buttons to do many different things, you need to add 

"cmds.showWindow( window )"  or the window will not be visible