{ window -t "我的测试窗" myTestWin; columnLayout -adj 1; string $a = "bbb"; button -c ("test2 "+$a) ; //设计界面,并在button -c处调用函数test2,传入参数$a proc test2(string $b){ //定义函数test2 print($b); } showWindow myTestWin; }