Python 3.4.1 installer on Mac links Python to old Tcl/Tk
Ned Deily
nad at acm.org
Thu Jun 26 18:29:28 EDT 2014
In article <lohpaq$6hr$1 at dont-email.me>,
Christian Gollwitzer <auriocus at gmx.de> wrote:
> Am 26.06.14 14:37, schrieb Christian Gollwitzer:
> > Am 26.06.14 12:39, schrieb Peter Tomcsanyi:
> >> "Christian Gollwitzer" <auriocus at gmx.de> wrote in message
> >> news:lofciv$nq6$1 at dont-email.me...
> >>> For PNG image support you can load either the Img package which gives
> >>> support for a large variety of images, or the smaller tkpng package.
> >>
> >> My first Google search for
> >> "tkpng" "python"
> >> gave no usable results. So I am not sure if and how can I use these Tk
> >> extensions from Python...
> >
> > On my Mac it came with the OS (I
> > think); you'll do Tk.eval("package require Img").
> Just checked back with my vanilla VM install of Snow Leopard (10.6),
> that the Img package is installed. So doing this package require Img in
> case you detect 8.5 should solve your PNG problem on the Mac (you can do
> "package require Tk" to get the version number). I haven't checked alpha
> channel, though. For the rotated text there is no good solution. Of
> course, pushing people to install 8.6 is better:)
Just a reminder that you should *not* depend on the Apple-supplied Tk
8.5 in OS X 10.6. That was the first release of Cocoa Tk and it has
proven to be almost unusable, at least with IDLE and some other
Tkinter-based apps. Install a newer Tcl/Tk 8.5.x, like from ActiveTcl,
and use a python that links with it, like from the python.org
installers. The ActiveTcl installer also installs "teacup" which allows
you to easily install additional Tcl packages.
--
Ned Deily,
nad at acm.org
More information about the Python-list
mailing list