我已经尝试在 wish(*.tk) 文件中加载线程包。你能告诉我如何在wish(tk)文件中使用包吗?
% pkg.tk
#!/usr/bin/wish -f
#!/usr/bin/tclsh8.5
package require Thread
错误:
Error in startup script: can't find package Thread
while executing
"package require Thread"
(file "./pkg.tk" line 4)