Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/backbone.js/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
如何将Tcl Tk比例提高0.1_Tcl_Scale_Tk - Fatal编程技术网

如何将Tcl Tk比例提高0.1

如何将Tcl Tk比例提高0.1,tcl,scale,tk,Tcl,Scale,Tk,如何将Tcl/Tk中的scale小部件增加一个浮点数,例如0.1?。下面是我的代码: #!/usr/bin/wish package require Tk scale .meter -from 0 -to 10 -variable r -label meter -orient horizontal pack .meter -fill both -expand true 您可以使用以下选项: 将采用0.1的所有增量/减量 #!/usr/bin/wish package require

如何将Tcl/Tk中的scale小部件增加一个浮点数,例如0.1?。下面是我的代码:

#!/usr/bin/wish

package require Tk

scale .meter -from 0 -to 10  -variable r -label meter -orient horizontal
pack .meter  -fill both -expand true
您可以使用以下选项:

将采用0.1的所有增量/减量

#!/usr/bin/wish

package require Tk

scale .meter -from 0 -to 10  -variable r -label meter -orient horizontal -resolution 0.1
pack .meter  -fill both -expand true