Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #73641
| From | Ned Deily <nad@acm.org> |
|---|---|
| Subject | Re: Python 3.4.1 installer on Mac links Python to old Tcl/Tk |
| Date | 2014-06-26 15:29 -0700 |
| References | (2 earlier) <mailman.11241.1403724416.18130.python-list@python.org> <lofciv$nq6$1@dont-email.me> <mailman.11256.1403779201.18130.python-list@python.org> <loh45o$14g$1@dont-email.me> <lohpaq$6hr$1@dont-email.me> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.11270.1403821787.18130.python-list@python.org> (permalink) |
In article <lohpaq$6hr$1@dont-email.me>,
Christian Gollwitzer <auriocus@gmx.de> wrote:
> Am 26.06.14 14:37, schrieb Christian Gollwitzer:
> > Am 26.06.14 12:39, schrieb Peter Tomcsanyi:
> >> "Christian Gollwitzer" <auriocus@gmx.de> wrote in message
> >> news:lofciv$nq6$1@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@acm.org
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Python 3.4.1 installer on Mac links Python to old Tcl/Tk "Peter Tomcsanyi" <tomcsanyi@slovanet.sk> - 2014-06-24 20:11 +0200
Re: Python 3.4.1 installer on Mac links Python to old Tcl/Tk Christian Gollwitzer <auriocus@gmx.de> - 2014-06-25 08:58 +0200
Re: Python 3.4.1 installer on Mac links Python to old Tcl/Tk "Peter Tomcsanyi" <tomcsanyi@slovanet.sk> - 2014-06-25 21:26 +0200
Re: Python 3.4.1 installer on Mac links Python to old Tcl/Tk Christian Gollwitzer <auriocus@gmx.de> - 2014-06-25 22:48 +0200
Re: Python 3.4.1 installer on Mac links Python to old Tcl/Tk "Peter Tomcsanyi" <tomcsanyi@slovanet.sk> - 2014-06-26 12:39 +0200
Re: Python 3.4.1 installer on Mac links Python to old Tcl/Tk Christian Gollwitzer <auriocus@gmx.de> - 2014-06-26 14:37 +0200
Re: Python 3.4.1 installer on Mac links Python to old Tcl/Tk Christian Gollwitzer <auriocus@gmx.de> - 2014-06-26 20:38 +0200
Re: Python 3.4.1 installer on Mac links Python to old Tcl/Tk Ned Deily <nad@acm.org> - 2014-06-26 15:29 -0700
Re: Python 3.4.1 installer on Mac links Python to old Tcl/Tk "Peter Tomcsanyi" <tomcsanyi@slovanet.sk> - 2014-06-27 23:52 +0200
csiph-web