我想用 Python 编写一个 Nautilus 脚本。那可能吗?如果可能,我该怎么做?
我正在关注一本书,其中需要 Insight 调试器。我没有在我的 Maverick 上找到它。我用谷歌搜索,发现 debian 不再支持它,但我真的需要安装它。我试图编译源代码并安装了它,但每次启动它时都一直告诉我缺少 tk。我用 sudo aptitude install tk 安装了 tk 然后尝试再次运行它是一样的。我又编译了一次,并没有真正改变。那么请问我该如何安装呢?
更新:这是我收到的消息
Tk_Init failed: Can't find a usable tk.tcl in the following directories:
/usr/local/share/tk8.4 /usr/local/lib/tk8.4 /usr/lib/tk8.4 /usr/local/library /usr/library /usr/tk8.4.1/library /tk8.4.1/library
/usr/local/share/tk8.4/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 "/usr/local/share/tk8.4/listbox.tcl" line 182)
invoked from within
"source /usr/local/share/tk8.4/listbox.tcl"
(in namespace …
Run Code Online (Sandbox Code Playgroud)