Mel - Maya Embedded Language

use columnLayout to lay your commands out in a column.

-columnlayout
//create a window with a column of buttons.

if (`window -exists firstwindow`)
{
deleteUI firstwindow;
windowPref -remove firstwindow;
}



window  -widthHeight 150 200 firstwindow;
columnLayout 
	-columnWidth 140
	-rowSpacing 5
	-columnAttach "both" 5;


button -width 100 -label "A";
button -width 100 -label "B";
button -width 100 -label "C";
button -width 100 -label "D";
button -width 100 -label "E";
button -width 100 -label "F";

showWindow firstwindow;