If you save this out to a mel file and then source it in maya, when you click the button you get an error because it won't source the local proc in the same file, if you do this without the button etc it'll work. Anyone know how to get this to work, I've had a quick go with evals and can't get it?
global proc buttonPress()
window -width 150;
columnLayout -adjustableColumn true;
button -label Default -c test;