itk_component add

class tett {
inherit itk::Widget

 constructor { args } {
 itk_component add tett {
  test .cc.c
#  .pw.pane0.childsite.bluice.n.canvas.notebook.cs.page10.cs.dataprocessTab.c
 #replace .pw.pane0.childsite.bluice.n.canvas.notebook.cs.page10.cs.dataprocessTab. with .cc.
 }
 pack $itk_component(tett)
 }
}

tett .cc 
# .cc
pack  .cc
#.cc
#.cc
.cc.c initialize

 

 


itk_component add testtt {
     test  .pw.pane0.childsite.bluice.n.canvas.notebook.cs.page10.cs.dataprocessTab.c
}

.pw.pane0.childsite.bluice.n.canvas.notebook.cs.page10.cs.dataprocessTab.c initialize

pack $itk_component(testtt) 

 

posted @ 2011-08-23 23:16  greencolor  阅读(131)  评论(0编辑  收藏  举报