Posted October 17, 2022 by jadenb432
import maya.cmds
myWin = cmds.window(title="MY WINDOW", widthHeight=(500, 200))
cmds.columnLayout()
cmds.text(label="Hello jaden")
cmds.showWindow(myWin)
cmds.columnLayout( adjustableColumn=True )
cmds.button( label='Do nothing' )
cmds.button( label='Close', command=('cmds.deleteUI(\"' + myWin + '\", window=True)') )
this was the commands which created a small window in maya with buttons