when i execute the following function no window pops up as i would hope to expect. When i run the code outside of the function, all works well?
CODE
def jAC():
cmds.window( widthHeight=(100, 150) )
tabs = cmds.tabLayout(innerMarginWidth=5, innerMarginHeight=5)
child1 = cmds.columnLayout()
cmds.text( label='Character Name' )
charName = cmds.textField(width = 200)
b1 = cmds.button(label = 'Create Character' )
cmds.setParent( '..' )
cmds.columnLayout( child1, edit=True, )
child2 = cmds.rowColumnLayout(numberOfColumns=2)
b4 = cmds.button()
cmds.setParent( '..' )
cmds.tabLayout( tabs, edit=True, tabLabel=((child1, 'One'), (child2, 'Two')) )
cmds.showWindow()
i get the following result:
CODE
# Result: #