Posted on 2008-12-03 05:05
kooyee 閱讀(2343)
評論(3) 編輯 收藏
當調用nam時,出現如下錯誤
[code omitted because of length]
: no event type or button # or keysym
? ? while executing
"bind Listbox <MouseWheel> {
%W yview scroll [expr {- (%D / 120) * 4}] units
}"
? ? invoked from within
"if {[tk windowingsystem] eq "classic" || [tk windowingsystem] eq "aqua"} {
bind Listbox <MouseWheel> {
%W yview scroll [expr {- (%D)}] units
}
bind Li..."
這個是由于nam調用的tk組件和xproto-7.0.13 不兼容導致的(xproto-7.0.13?新添加了 GenericEvent)。
解決方法:
到這里下載補丁
http://bugs.gentoo.org/show_bug.cgi?id=225999在ns-allinone-2.33下運行
patch -p0 <tk-8.4.18-tkBind.patch
然后重裝ns-2.33