我可以知道如何通过 -command 将我选择的值从组合框中传递给 A_task 吗?例如,如果我在组合框中选择了 3,那么我想将此值传递给我的 A_task proc
ComboBox .combo -values {"0" "1" "2" "3" "4" "5" \
-helptext "Please select your options" \
-command A_task
proc A_Task {value} {
# Do something here
}
谢谢您的帮助!