为什么我的 Tk 应用程序会出现“未知颜色名称白色”错误?
我刚刚在 ubuntu 机器上安装了 tkdiff,当我尝试运行该程序时,出现以下错误:
actual font: -family {DejaVu Sans Mono} -size -12 -weight normal -slant roman -underline 0 -overstrike 0
Error in startup script: unknown color name "white"
(processing "-foreground" option)
invoked from within
"text $w(LeftCB) -height 0 -padx 0 -highlightthickness 0 -wrap none -foreground white -width 1 -borderwidth 0 -yscrollcommand [list vscroll-sync "$w(..."
(procedure "build-client" line 81)
版本:
- Ubuntu 9.04
- tkdiff ??? (找不到版本号)
- wish 8.5
有谁知道我应该如何解决这个问题?我可以进入 tkdiff 脚本并将白色更改为颜色值,但在我看来,我正在修复症状而不是解决真正的问题。换句话说,我的tkdiff或wish以及ubuntu的版本有问题吗?
I just installed tkdiff on a ubuntu machine and when I try and run the program I get the following error:
actual font: -family {DejaVu Sans Mono} -size -12 -weight normal -slant roman -underline 0 -overstrike 0
Error in startup script: unknown color name "white"
(processing "-foreground" option)
invoked from within
"text $w(LeftCB) -height 0 -padx 0 -highlightthickness 0 -wrap none -foreground white -width 1 -borderwidth 0 -yscrollcommand [list vscroll-sync "$w(..."
(procedure "build-client" line 81)
Versions:
- Ubuntu 9.04
- tkdiff ??? (Could not find a version number)
- wish 8.5
Does anyone know how I should fix this? I could go into the tkdiff script and change white to a color value but that seems to me like I am fixing the symptom and not solving the real problem. In other words is there something wrong with my tkdiff or wish and the version of ubuntu?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
一些 Google 研究表明,您的 xorg.conf 文件(可能在 /etc/X11 中?)中的“rgbpath”定义可能存在问题。我要么确保它的值是正确的,要么可能一起删除该行。
杰夫
Some Google research indicates that there might be a problem with the definition of "rgbpath" in your xorg.conf file (possibly in /etc/X11?). I'd either ensure that it's value is correct, or possibly remove the line all together.
Jeff