[Pythonmac-SIG] X11 and Tkinter (was: Beginner's questions)
Jack Jansen
Jack.Jansen at cwi.nl
Tue Dec 30 07:36:43 EST 2003
On 29-dec-03, at 18:19, Russell E Owen wrote:
>> Note that you can also do this without installing a second Python. If
>> you put _tkinter.so for X11 in, say, ~/Library/X11-Python and you add
>> that directory to $PYTHONPATH. You could create a script x11python
>> containing
>>
>> #!/bin/sh
>> PYTHONPATH=~/Library/X11-Python:$PYTHONPATH
>> exec /usr/bin/python "$@"
>>
>> should do the trick, I think (untested).
>
> That is a very interesting idea. I suppose one could do an x11 build
> of python, extract _tkinter.so and then discard the build, thus saving
> disk space and clutter over keeping two builds. But...might there some
> simpler way to obtain an x11-based _tkinter.so?
Actually, it would be reasonably simple to create a PackMan package
that contains an X11 _tkinter, puts it in
/Library/Python/2.3/X11-Python and puts an x11python script in
/usr/local/bin.
How much interest would there be in such a thing?
--
Jack Jansen, <Jack.Jansen at cwi.nl>, http://www.cwi.nl/~jack
If I can't dance I don't want to be part of your revolution -- Emma
Goldman
More information about the Pythonmac-SIG
mailing list