473,395 Members | 1,677 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,395 software developers and data experts.

Tkinter / Mac OS X Question (Aqua vs. X11)

I am running Mac OS X. I have Tcl/Tk installed. I can run the Aqua
version (TkAqua) of wish by typing 'wish' at a terminal prompt. I can
run the X11 version (TkX11) of wish by typing 'wish8.4-X11' in an
x-term. If I run python and import Tkinter it always grabs the TkAqua
version. How can I get Tkinter to load the TkX11 version?

I want to be able to switch back and forth between the two at will.

Thanks
David

Mar 12 '06 #1
4 3818
dm**************@yahoo.com schrieb:
I am running Mac OS X. I have Tcl/Tk installed. I can run the Aqua
version (TkAqua) of wish by typing 'wish' at a terminal prompt. I can
run the X11 version (TkX11) of wish by typing 'wish8.4-X11' in an
x-term. If I run python and import Tkinter it always grabs the TkAqua
version. How can I get Tkinter to load the TkX11 version?

I want to be able to switch back and forth between the two at will.


Install python using fink, and invoke that. Should work against X11 for
all GUI-Toolkits.

Diez
Mar 12 '06 #2
> Install python using fink, and invoke that. Should work against X11 for
all GUI-Toolkits.


I prefer not to do this. Darwin is already a Unix, and Apple provides
a version of X11 that works well with it. Fink seems like an
unecessary layer that I would rather not mess with. Tcl/Tk has a very
simple way to select. It would be nice if Python did something similar
(command line option, an environment variable, whatever). I looked for
an option in the build process, and from what I can tell, the OS X
version looks like it only builds a single version (TkAqua).

TkAqua and TkX11 do differ, and it would be nice to see the same script
run under both Aqua and X11 without having to switch machines.

Mar 13 '06 #3
dm**************@yahoo.com schrieb:
Install python using fink, and invoke that. Should work against X11 for
all GUI-Toolkits.
I prefer not to do this. Darwin is already a Unix, and Apple provides
a version of X11 that works well with it.
Fink seems like an
unecessary layer that I would rather not mess with. Tcl/Tk has a very
simple way to select. It would be nice if Python did something similar
(command line option, an environment variable, whatever).


Fink works precisely _because_ OS X is a unix & has a X11 server. It is
no "layer", it is just precompiled package management for unix-software
running under OS X.
I looked for
an option in the build process, and from what I can tell, the OS X
version looks like it only builds a single version (TkAqua).
TkAqua and TkX11 do differ, and it would be nice to see the same script
run under both Aqua and X11 without having to switch machines.


You might be able to tamper with the build process - but I have no idea
how to do so.

Diez
Mar 13 '06 #4
dm**************@yahoo.com wrote:
I am running Mac OS X. I have Tcl/Tk installed. I can run the Aqua
version (TkAqua) of wish by typing 'wish' at a terminal prompt. I can
run the X11 version (TkX11) of wish by typing 'wish8.4-X11' in an
x-term. If I run python and import Tkinter it always grabs the TkAqua
version. How can I get Tkinter to load the TkX11 version?

I want to be able to switch back and forth between the two at will.

Thanks
David


I don't think the version of Python that ships with OS X by default is
compatible with the X11 environment. For one thing, it is built with the
"-framework" flag, which is how OS X packages libraries--this works
differently than on other *Nix environments. The Aqua version of Tcl/Tk
is also a framework build, and it's not compatible with the X11 version.
(The "wish8.4-x11" command is just a wrapper script that invokes a
completely different wish binary, linked against an entirely different
set of libraries.)

The advice to install Python and Tcl/Tk via Fink (or DarwinPorts) then
run your script against that is the right advice. It's a much cleaner
way to go.

--
Kevin Walzer
iReveal: File Search Tool
http://www.wordtech-software.com
Mar 13 '06 #5

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

Similar topics

4
by: Dave Benjamin | last post by:
Is Tkinter pretty common for simple behind-the-scenes admin tools where a GUI is required (for instance, data entry tools for non-programmers) or has everybody moved on to wx/GTK/QT/etc.? I'm...
4
by: Tim Jarman | last post by:
Apologies in advance for the long post - I wanted to be sure I included all the relevant details. The answer is probably very, very simple. I am doing something stupid here, but I don't know what...
1
by: Paul Watson | last post by:
I cannot yet get tkinter working on 2.4.2. I have installed the tk rpms from FC4. I have checked to see that TKPATH is available in Modules/Setup. How can I verify that I have tcl/tk installed...
1
by: MichaelW | last post by:
I've been Python (2.3.4) plus Tkinter happily under MacOX 10.3, having compiled them from scatch. (Tkinter is based on tcl/tk 8.4.1, which were compiled from source via Fink). I then moved my...
1
by: dmsbox2000-list1 | last post by:
This is a beginner question. I am using a Mac running OS X. I have TclTkAqua installed. If I type: import Tkinter r = Tkinter.Tk() c = Tkinter.Canvas(r) c.pack() c.create_line(0,0,100,0)
2
by: Andrew Trevorrow | last post by:
Our app uses embedded Python to allow users to run arbitrary scripts. Scripts that import Tkinter run fine on Windows, but on Mac OS X there is a serious problem. After a script does "root = Tk()"...
5
by: Ben Kovitz | last post by:
Hi, I just tried to run Tkinter on OS X 10.3.9 under Python 2.4.3, and I'm getting a bus error as soon as I call Tk(). Googling has turned up info other Tkinter bus errors, but not this one that...
32
by: Kevin Walzer | last post by:
I'm a Tcl/Tk developer who has been working, slowly, at learning Python, in part because Python has better support for certain kinds of applications that I want to develop than Tcl/Tk does....
44
by: bg_ie | last post by:
Hi, I'm in the process of writing some code and noticed a strange problem while doing so. I'm working with PythonWin 210 built for Python 2.5. I noticed the problem for the last py file...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.