English 中文(简体)
我的Tk应用程序为什么会出现“unknown color name white”错误?
原标题:Why does my Tk application error out with "unknown color name white"?

我刚在 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 ??? (Could not find a version number)
  • wish 8.5

是否有任何人知道我应如何解决这个问题? 我可以去掉手脚,把白色改成彩色,但在我看来,这似乎与我一样,正在解决症状,而不是解决真正的问题。 换言之,与我的信条或愿望以及乌本图的版本有什么错误?

问题回答

一些谷歌调查表明您的xorg.conf文件中的“rgbpath”定义可能存在问题(可能在/ etc / X11中?)。 我会确保它的值正确,或者可能完全删除该行。

杰夫





相关问题
Add a changing icon to Ubuntu Panel

What would be the most simple way of adding and changing an icon in the Ubuntu (Gnome) Panel? I m looking for something as simple as shell scripting, but I m not restricted to that. Will write a ...

Configuring kernel

After create a new system call, how to update the kernel? I tried these lines, make-kpkg clean fakeroot make-kpkg -initrd -append-to-version=-custom kernel_image kernel_headers But Ubuntu asked me ...

save Exceptions to file in python

I want to save all following Exceptions in a file. The reason why I need this is because the IDLE for python 3.1.1 in Ubuntu raises an Exception at calltipps, but close to fast, that it isn t readble. ...

How can i monitor system statistics in kubuntu using Java?

i am doing a project related to configuration and memory analyzer for kubuntu. i want to display the system statistics information like CPU usage, RAM usage and proceses etc. graphically using an ...

How to pass "--external-locking" for mysqld in Ubuntu

I would like to start my mysql server with the --external-locking option. As mysqld is run by the /etc/init.d/mysql script ubuntu (karmic), I guess that s where I should set this "--external-locking" ...

"g++" and "c++" compiler

I just found on my Ubuntu, there are two different C++ compilers: /usr/bin/g++ and /usr/bin/c++. I am not familiar with the latter, but man c++ just jumps to the manpage of gcc. I wonder what is their ...

热门标签