Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/user-interface/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/mercurial/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
User interface 在tcl tk组合框中做出选择后如何运行脚本_User Interface_Tcl_Tk - Fatal编程技术网

User interface 在tcl tk组合框中做出选择后如何运行脚本

User interface 在tcl tk组合框中做出选择后如何运行脚本,user-interface,tcl,tk,User Interface,Tcl,Tk,我正在使用,每次选择时都要运行一个脚本。但是在文档中只有一个-postcommand选项存在,它在选择之前运行脚本。选择后如何运行脚本(我希望能够知道何时做出选择) 此外,组合框是-state readonly,因此无法通过条目进行选择。绑定到虚拟事件,该虚拟事件是组合框在每次选择项目后生成的 bind .combo <<ComboboxSelected>> {puts "chosen [%W get]"} bind.combo{put“selected[%W get]

我正在使用,每次选择时都要运行一个脚本。但是在文档中只有一个
-postcommand
选项存在,它在选择之前运行脚本。选择后如何运行脚本(我希望能够知道何时做出选择)

此外,组合框是
-state readonly
,因此无法通过条目进行选择。

绑定到
虚拟事件,该虚拟事件是组合框在每次选择项目后生成的

bind .combo <<ComboboxSelected>> {puts "chosen [%W get]"}
bind.combo{put“selected[%W get]”