简体   繁体   English

如何在Mac OS X上安装Tix?

[英]How to install Tix on Mac OS X?

I have been trying to install Tix to create a GUI in Python, and I couldn't make it. 我一直在尝试安装Tix以在Python中创建GUI,但我无法实现。

My computer characteristics are: 我的电脑特点是:

  • Macbook Pro Macbook Pro
  • Processor: Intel 2.4GHz intel core i5 处理器:Intel 2.4GHz intel core i5
  • Architecture: 64-bits 架构:64位

And Python version is: Python 2.7.3 |EPD 7.3-2 (64-bit)| Python版本是: Python 2.7.3 |EPD 7.3-2 (64-bit)|

I am using Aptana Studio 3. 我正在使用Aptana Studio 3。

I have been trying using Macports and it has been impossible. 我一直在尝试使用Macports,这是不可能的。 Do you know a way you have succeeded with? 你知道你成功的方式吗?

I wrote a small guide . 我写了一个小指南 Maybe this will help others: 也许这会有助于其他人:

Notes: The specified version numbers are important, since Tix 8.4 does not work with Tcl/Tkl 8.6.x 注意:指定的版本号很重要,因为Tix 8.4不适用于Tcl / Tkl 8.6.x.

  • Install xQuartz 安装xQuartz
  • Download Tcl 8.5 and Tk 8.5 下载Tcl 8.5和Tk 8.5
  • Download Tix 8.4 下载Tix 8.4
  • Copy into directory structure ./src/Tix8.4.x , /src/Tcl8.5.x , /src/Tk8.5.x 复制到目录结构./src/Tix8.4.x/src/Tcl8.5.x/src/Tk8.5.x
  • Compile Tcl: 编译Tcl:

     cd ./src/Tcl8.5.x ./configure --enable-shared make 
  • Compile Tk: 编译Tk:

     cd ./src/Tk8.5.x ./configure --enable-shared make 
  • Tix: 蒂克斯:

     cd ./src/Tix8.4.x ./configure LDFLAGS="-L/usr/X11/lib" --enable-shared make make install 
  • Set Tix Library path (eg in your .bashrc/.zshrc) to let python find the tix library: export TIX_LIBRARY="/usr/local/lib/Tix8.4.x" (adjust version number) 设置Tix Library路径(例如在.bashrc / .zshrc中)让python找到export TIX_LIBRARY="/usr/local/lib/Tix8.4.x"库: export TIX_LIBRARY="/usr/local/lib/Tix8.4.x" (调整版本号)

  • You are done! 你完成了!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM