Can't find a usable tk.tcl in the following directories:
/opt/sourcenav/share/tk8.3
/opt/sourcenav/share/tk8.3/tk.tcl: no event type or button # or keysym
no event type or button # or keysym
while executing
"bind Listbox <MouseWheel> {
%W yview scroll [expr {- (%D / 120) * 4}] units
}"
(file "/opt/sourcenav/share/tk8.3/listbox.tcl" line 182)
invoked from within
"source [file join $tk_library listbox.tcl]"
invoked from within
"if {[string compare $tcl_platform(platform) "macintosh"] && /
[string compare {} $tk_library]} {
source [file join $tk_library button.tcl]
so..."
(file "/opt/sourcenav/share/tk8.3/tk.tcl" line 308)
invoked from within
"source /opt/sourcenav/share/tk8.3/tk.tcl"
("uplevel" body line 1)
invoked from within
"uplevel /#0[list source $file]"
This probably means that tk wasn't installed properly.
解决方法:
- comment out lines 182-184 in the file /opt/sourcenav/share/tk8.3/listbox.tcl
- comment out lines 457-459 in the file /opt/sourcenav/share/tk8.3/text.tcl
本文解决了Tk在特定目录下未正确安装的问题,通过注释掉listbox.tcl和text.tcl文件中指定行数的代码来避免错误。此问题源于无法识别MouseWheel事件。
3075

被折叠的 条评论
为什么被折叠?



