Hope it helpswindow -title "Menu Test Window" -menuBar true;
menu -label "File" -tearOff false;
menuItem -label "New" -command "new";
menuItem -label "Save" -command "save";
menuItem -divider true;
menuItem -label "Close" -command "close";
menu -label "Edit" -tearOff true;
menuItem -label "Undo" -command "un";
menuItem -label "Redo" -command "re";
showWindow;