arthur 发表于 2012-11-3 19:03:33

Unix上用Tcl/Tk做到界面window实例

给个Tcl/Tk的实例给大家看看,Tk的X-windows界面是什么样子

#!/image/bin.rls/custom/qa_custom/scripts/scan_startlot_endlot/STATS/ESUMMARY/bin/wish8.5 -f
##################################################################################
label .l1 -text "MT1805 O/S Testing Guider\n" \
-font {-family helvetica -size 14 -weight bold} \
-foreground blue -bd 2
label .l11 -text "Please select \\n\
Image Version: 7.0D11 \n\n" \
-foreground red -bd 2

label .l6 -text "Hardware Infomartion:\n\
-----------------------------------\n\
Load board: DB1200 & DB1201 (SHARING MOTHER BOARD WITH MT6235/NT6223) on 4th floor HW \n\n\
Socket: M0601-00013-01 (MD015 ... MD018) \n"
label .l7 -text "Yield Control Infomartion:\n\
-----------------------------------\n\
Yield Limit: 99.5%, O/S Limit: 0.5%, \n\
Retest until recovery rate < 20%! \n\n"\
-font {-family arial -size 12} -foreground purple

label .l8 -text "Bin Infomartion:\n\
-----------------------------------\n\
Bin1: Good,   Bin4: Open,  Bin3: Short,   Bin5: Leakage, Bin2: Error\n\
  Conty Bin is Bin3 and Bin4\n\n\n"\
-foreground DarkBlue
pack .l1 .l11 .l6 .l7 .l8


arthur 发表于 2012-11-3 19:05:06

具体,每个命令是什么意思,大家上www.tck.tk官网去查询,需要的同学可以把每个命令都练习一边,以后如果在Unix和Linux上做窗体应用程序还是用得到的
页: [1]
查看完整版本: Unix上用Tcl/Tk做到界面window实例