0
点击更新按钮后,alist会更新,我如何获取更新值并可以在组合框中选择?非常感谢!如何跟踪变量?
namespace eval PreGen {
set alist {sec1 sec2 sec3 sec4}
proc SetUp {} {
ttk::combobox .c -values $PreGen::alist
button .b -text update -command PreGen::Update
grid ...
}
proc Update {} {
...
set PreGen::alist {op1 op2 op3 ...} #the list value got from other file
...
}
}
非常感谢。这真的让我学到了很多! – Jimmy