ウィンドウが複数表示されてしまっては不格好なため
melやpythonでウィンドウを表示する際は表示前に消してしまうことが望ましい。
global proc OpenWindow()
{
// 既存のウィンドウの破棄
if( `window -exists Editor` )
{
deleteUI -window Editor;
}
// 新規ウィンドウの作成
string $win = `window -title "Editor" -iconName "Editor" -widthHeight 160 60 Editor`;
columnLayout -adjustableColumn true;
text -label "text" -align center;
setParent ..;
showWindow $win;
}// ウィンドウのオープン
OpenWindow();