473,326 Members | 2,061 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Tix.Tk() on Mac Intel

Hi List!

I have I Macbook Pro Intel running OSX 10.4.10.

I downloaded Python 2.5 and tried
TclTkAquaBI-8.4.10.0.dmg, but I got:

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-tk/Tix.py",
line 210, in __init__
self.tk.eval('package require Tix')
_tkinter.TclError: no suitable image found. Did find:
/Library/Tcl/Tix8.4/libTix8.4.dylib: mach-o, but wrong architecture

Which make sense since tcltkaqua is released only for PPC. Googling a
bit, since tcltkaqua stopped development, I found they recommended
ActiveTcl, but Tix is not included in the package.

So removing tcltkaqua and ActiveTcl, when trying Tix.Tk() I got:
>>Tix.Tk()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-tk/Tix.py",
line 210, in __init__
self.tk.eval('package require Tix')
_tkinter.TclError: can't find package Tix

The only way I got Tix.Tk() working so far was using Fink but I want
the nice aqua visual for python. Is there any way of getting it
working?

I would appreciate any help here.
Many thanks in advance.
Cheers,
Alan
Jul 26 '07 #1
2 4237
Alan wrote:
Hi List!

I have I Macbook Pro Intel running OSX 10.4.10.

I downloaded Python 2.5 and tried
TclTkAquaBI-8.4.10.0.dmg, but I got:

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-tk/Tix.py",

line 210, in __init__
self.tk.eval('package require Tix')
_tkinter.TclError: no suitable image found. Did find:
/Library/Tcl/Tix8.4/libTix8.4.dylib: mach-o, but wrong architecture

Which make sense since tcltkaqua is released only for PPC. Googling a
bit, since tcltkaqua stopped development, I found they recommended
ActiveTcl, but Tix is not included in the package.

So removing tcltkaqua and ActiveTcl, when trying Tix.Tk() I got:
>>>Tix.Tk()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-tk/Tix.py",

line 210, in __init__
self.tk.eval('package require Tix')
_tkinter.TclError: can't find package Tix

The only way I got Tix.Tk() working so far was using Fink but I want
the nice aqua visual for python. Is there any way of getting it
working?

I would appreciate any help here.
Many thanks in advance.
Cheers,
Alan
You'll need to build Tix yourself from source, and Tix must be built in
the same directory as the Tcl/Tk source tree (so you'll at least need to
download and untar those source trees).

--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
Jul 26 '07 #2
Alan wrote:
Hi List!

I have I Macbook Pro Intel running OSX 10.4.10.

I downloaded Python 2.5 and tried
TclTkAquaBI-8.4.10.0.dmg, but I got:

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-tk/Tix.py",

line 210, in __init__
self.tk.eval('package require Tix')
_tkinter.TclError: no suitable image found. Did find:
/Library/Tcl/Tix8.4/libTix8.4.dylib: mach-o, but wrong architecture

Which make sense since tcltkaqua is released only for PPC. Googling a
bit, since tcltkaqua stopped development, I found they recommended
ActiveTcl, but Tix is not included in the package.

So removing tcltkaqua and ActiveTcl, when trying Tix.Tk() I got:
>>>Tix.Tk()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-tk/Tix.py",

line 210, in __init__
self.tk.eval('package require Tix')
_tkinter.TclError: can't find package Tix

The only way I got Tix.Tk() working so far was using Fink but I want
the nice aqua visual for python. Is there any way of getting it
working?

I would appreciate any help here.
Many thanks in advance.
Cheers,
Alan
You'll need to build Tix yourself from source, and Tix must be built in
the same directory as the Tcl/Tk source tree (so you'll at least need to
download and untar those source trees).

--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
Jul 26 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Bgc | last post by:
Hello All, I've been struggling for years now trying to come up with a solution to a very personal programming problem with Python. I'm an educational programmer, and I make applications that...
0
by: Jack Diederich | last post by:
I'm calling Tk() twice to create two top level windows, which works fine in every respect except fonts. Assigning a Tkfont to widgets in the first Tk() window I create works fine, the font looks...
2
by: Eric McDaniel | last post by:
I am trying to read in a bunch of images and manipulate them using Image::Magick, then display them using Tk::Photo. I would like to do this without creating a temp file for each image, since there...
5
by: jerry.levan | last post by:
Hi, I am trying to port one of my Tcl/Tk apps to Python ( 2.4.2/3). One task is to try to be able to use my wheel mouse to scroll a Tktable object. The tcl code looks like: #Support the...
4
by: BinnyVA | last post by:
I am using Fedora Core 3 Linux and I have a problem with Tk in Python. Whenever I try to run a tk script, I get the error... --------------- Traceback (most recent call last): File "Tk.py",...
0
by: a3355776 | last post by:
On my Mac, the Tk Canvas arc drawing routine produces arcs that are rotated quite a few degrees from their correct location (as many as 10 deg.). It doesn't seem to be a consistent amount though, but...
8
by: Leon | last post by:
Hello, First of all, I beg you pardon for my poor english... You probably know it, but a new version of Tcl/TK has arrived :...
2
by: Dudeja, Rajat | last post by:
Hi, So, now I've finally started using Eclipse and PyDev as an IDE for my GUI Application. I just wrote some sample programs as an hands on. Now I would like to take up Tkinter. I'm using...
4
by: njwilson23 | last post by:
I'm having trouble with tkinter on a new installation of Python (2.6), built with the framework option from source that was downloaded from python.org. I'm running OS 10.4 on a PowerPC G4. The...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.