Discuz! Board

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 47178|回复: 4

[Tcl/Tk] Unix上用Tcl/Tk做到界面window实例 [复制链接]

Rank: 8Rank: 8

发表于 2012-11-3 19:03:33 |显示全部楼层
给个Tcl/Tk的实例给大家看看,Tk的X-windows界面是什么样子
  1. #!/image/bin.rls/custom/qa_custom/scripts/scan_startlot_endlot/STATS/ESUMMARY/bin/wish8.5 -f
  2. ##################################################################################
  3. label .l1 -text "MT1805 O/S Testing Guider\n" \
  4. -font {-family helvetica -size 14 -weight bold} \
  5. -foreground blue -bd 2
  6. label .l11 -text "Please select \[Production DIR\]\n\
  7. Image Version: 7.0D11 \n\n" \
  8. -foreground red -bd 2

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

  18. label .l8 -text "Bin Infomartion:\n\
  19. -----------------------------------\n\
  20. Bin1: Good,   Bin4: Open,  Bin3: Short,   Bin5: Leakage, Bin2: Error\n\
  21.   Conty Bin is Bin3 and Bin4\n\n\n"\
  22. -foreground DarkBlue
  23. pack .l1 .l11 .l6 .l7 .l8
复制代码

MT1805_Guider_Window.1.jpg

使用道具 举报

Rank: 8Rank: 8

发表于 2012-11-3 19:05:06 |显示全部楼层
具体,每个命令是什么意思,大家上www.tck.tk官网去查询,需要的同学可以把每个命令都练习一边,以后如果在Unix和Linux上做窗体应用程序还是用得到的

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

Archiver|IC Test Forum Inc.

GMT+8, 2023-3-31 10:48 , Processed in 0.311330 second(s), 14 queries .

Powered by Discuz! X2

© 2001-2011 Comsenz Inc.

回顶部