import maya.cmds as cmds;
win = cmds.window(
'ar_optionsWindow',
title='Meng\'s First Window', //a title bar string,\is the escape character(转义字符)
widthHeight=(546,350) //window's size
);
cmds.showWindow(win); //to display the window
cmds.deleteUI(win, window=True); //delete exiting window
win = cmds.window(
'ar_optionsWindow',
title='Meng\'s Second Window',
widthHeight=(546,350)
);
cmds.showWindow(win);
No comments:
Post a Comment