Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #112208 > unrolled thread

Tcl/Tk for Python 3.6.0a3 on Os X 10.9.5

Started bymunozvvaleria@gmail.com
First post2016-08-02 01:21 -0700
Last post2016-08-04 22:06 -0500
Articles 9 — 7 participants

Back to article view | Back to comp.lang.python


Contents

  Tcl/Tk for Python 3.6.0a3 on Os X 10.9.5 munozvvaleria@gmail.com - 2016-08-02 01:21 -0700
    Re: Tcl/Tk for Python 3.6.0a3 on Os X 10.9.5 Christian Gollwitzer <auriocus@gmx.de> - 2016-08-02 10:29 +0200
    Re: Tcl/Tk for Python 3.6.0a3 on Os X 10.9.5 Chris Angelico <rosuav@gmail.com> - 2016-08-02 20:21 +1000
    Re: Tcl/Tk for Python 3.6.0a3 on Os X 10.9.5 Terry Reedy <tjreedy@udel.edu> - 2016-08-02 15:08 -0400
    Re: Tcl/Tk for Python 3.6.0a3 on Os X 10.9.5 Ned Deily <nad@python.org> - 2016-08-02 16:10 -0400
      Re: Tcl/Tk for Python 3.6.0a3 on Os X 10.9.5 Christian Gollwitzer <auriocus@gmx.de> - 2016-08-03 10:30 +0200
        Re: Tcl/Tk for Python 3.6.0a3 on Os X 10.9.5 Chris Angelico <rosuav@gmail.com> - 2016-08-03 18:58 +1000
    Re: Tcl/Tk for Python 3.6.0a3 on Os X 10.9.5 Lawrence D’Oliveiro <lawrencedo99@gmail.com> - 2016-08-04 18:25 -0700
      Re: Tcl/Tk for Python 3.6.0a3 on Os X 10.9.5 Zachary Ware <zachary.ware+pylist@gmail.com> - 2016-08-04 22:06 -0500

#112208 — Tcl/Tk for Python 3.6.0a3 on Os X 10.9.5

Frommunozvvaleria@gmail.com
Date2016-08-02 01:21 -0700
SubjectTcl/Tk for Python 3.6.0a3 on Os X 10.9.5
Message-ID<fd3b3256-510c-407b-8ff0-627a26d31287@googlegroups.com>
Hello,

I am new to the programming world but I need to learn this program for a research class that I am taking. I have downloaded Python 3.6.0a3 on a Mac 10.9.5 and realized that I also need to download an Active Tcl for it. I can't find one for this version. Can someone please direct me to it? The most recent one I've been able to find is for Python 3.5.2

Thanks!

Valeria

[toc] | [next] | [standalone]


#112209

FromChristian Gollwitzer <auriocus@gmx.de>
Date2016-08-02 10:29 +0200
Message-ID<nnplla$qa9$1@dont-email.me>
In reply to#112208
Am 02.08.16 um 10:21 schrieb munozvvaleria@gmail.com:
> I am new to the programming world but I need to learn this program for a research class that I am taking. I have downloaded Python 3.6.0a3 on a Mac 10.9.5 and realized that I also need to download an Active Tcl for it. I can't find one for this version. Can someone please direct me to it? The most recent one I've been able to find is for Python 3.5.2

Tcl/Tk is independent from Python; any version should work. For best 
results on the Mac, try the most recent ActiveTcl from here 
http://www.activestate.com/activetcl/downloads/thank-you?dl=http://downloads.activestate.com/ActiveTcl/releases/8.6.4.1/ActiveTcl8.6.4.1.299124-macosx10.5-i386-x86_64-threaded.dmg

	Christian

[toc] | [prev] | [next] | [standalone]


#112212

FromChris Angelico <rosuav@gmail.com>
Date2016-08-02 20:21 +1000
Message-ID<mailman.109.1470133309.6033.python-list@python.org>
In reply to#112208
On Tue, Aug 2, 2016 at 6:21 PM,  <munozvvaleria@gmail.com> wrote:
> I am new to the programming world but I need to learn this program for a research class that I am taking. I have downloaded Python 3.6.0a3 on a Mac 10.9.5 and realized that I also need to download an Active Tcl for it. I can't find one for this version. Can someone please direct me to it? The most recent one I've been able to find is for Python 3.5.2
>

To add to what Christian suggested: If you can't get something working
using an alpha build of Python (that's an unreleased development
version), download Python 3.5.2 instead. That's the current stable
release. Using alphas opens you up to new bugs and incompatibilities,
and generally isn't something I'd recommend for a new programmer. It's
only fools like me who use unreleased software :)

ChrisA

[toc] | [prev] | [next] | [standalone]


#112242

FromTerry Reedy <tjreedy@udel.edu>
Date2016-08-02 15:08 -0400
Message-ID<mailman.122.1470164954.6033.python-list@python.org>
In reply to#112208
On 8/2/2016 4:21 AM, munozvvaleria@gmail.com wrote:

> I am new to the programming world but I need to learn this program
> for a research class that I am taking. I have downloaded Python
> 3.6.0a3 on a Mac 10.9.5 and realized that I also need to download an
> Active Tcl for it. I can't find one for this version. Can someone
> please direct me to it? The most recent one I've been able to find is
> for Python 3.5.2

This page https://www.python.org/download/mac/tcltk/
does not yet mention 3.6.  So I would start with the recommendation for 
3.5.2: tcl/tk 8.5.18.

I believe Ned Deily hopes to switch to tcl/tk 8.6.x before 3.6.0 is 
released.  If 8.5.18 does not work, I would try 8.6.whatever.  But I 
don't believe the switch has been made yet.

-- 
Terry Jan Reedy

[toc] | [prev] | [next] | [standalone]


#112252

FromNed Deily <nad@python.org>
Date2016-08-02 16:10 -0400
Message-ID<mailman.127.1470168657.6033.python-list@python.org>
In reply to#112208
On 2016-08-02 15:08, Terry Reedy wrote:
> On 8/2/2016 4:21 AM, munozvvaleria@gmail.com wrote:
>> I am new to the programming world but I need to learn this program
>> for a research class that I am taking. I have downloaded Python
>> 3.6.0a3 on a Mac 10.9.5 and realized that I also need to download an
>> Active Tcl for it. I can't find one for this version. Can someone
>> please direct me to it? The most recent one I've been able to find is
>> for Python 3.5.2
> This page https://www.python.org/download/mac/tcltk/
> does not yet mention 3.6.  So I would start with the recommendation for
> 3.5.2: tcl/tk 8.5.18.

Yes, sorry, I don't usually update that page for pre-releases.

The information you need is also included in the python.org OS X
installer Read Me file which is displayed during the installation
process.  (A copy of it is also preserved at "/Applications/Python
3.6/ReadMe.rtf".).  In the section "Update your version of Tcl/Tk to use
IDLE or other Tk applications":

"For the initial alpha releases of Python 3.6, the installer is linked
with Tcl/Tk 8.5; this will change prior to the beta releases of 3.6.0."

[toc] | [prev] | [next] | [standalone]


#112267

FromChristian Gollwitzer <auriocus@gmx.de>
Date2016-08-03 10:30 +0200
Message-ID<nnsa3e$9pq$1@dont-email.me>
In reply to#112252
Am 02.08.16 um 22:10 schrieb Ned Deily:
> "For the initial alpha releases of Python 3.6, the installer is linked
> with Tcl/Tk 8.5; this will change prior to the beta releases of 3.6.0."

Let me also convey some insider information from the Tcl world: the 
upcoming 8.7 (I'll expect it next year) will have full Unicode support 
(>BMP). Because of compatibility issues with the C API, this will be 
done in the way that Tcl unicode strings are considered UTF-16 instead 
of UCS-2. So adapting Tkinter should be relatively easy in the end, if 
it passes UTF-8 strings, then there is zero change, if it passes 
Tcl_UniChar, then these must be convrted to UTF-16.

	Christian

[toc] | [prev] | [next] | [standalone]


#112268

FromChris Angelico <rosuav@gmail.com>
Date2016-08-03 18:58 +1000
Message-ID<mailman.135.1470214725.6033.python-list@python.org>
In reply to#112267
On Wed, Aug 3, 2016 at 6:30 PM, Christian Gollwitzer <auriocus@gmx.de> wrote:
> Am 02.08.16 um 22:10 schrieb Ned Deily:
>>
>> "For the initial alpha releases of Python 3.6, the installer is linked
>> with Tcl/Tk 8.5; this will change prior to the beta releases of 3.6.0."
>
>
> Let me also convey some insider information from the Tcl world: the upcoming
> 8.7 (I'll expect it next year) will have full Unicode support (>BMP).

Yay!!

> Because of compatibility issues with the C API, this will be done in the way
> that Tcl unicode strings are considered UTF-16 instead of UCS-2. So adapting
> Tkinter should be relatively easy in the end, if it passes UTF-8 strings,
> then there is zero change, if it passes Tcl_UniChar, then these must be
> convrted to UTF-16.

Ehh. Well, it's no worse than ECMAScript uses.

ChrisA

[toc] | [prev] | [next] | [standalone]


#112365

FromLawrence D’Oliveiro <lawrencedo99@gmail.com>
Date2016-08-04 18:25 -0700
Message-ID<2eab4d10-f648-46bb-97b9-2bd699b69561@googlegroups.com>
In reply to#112208
On Tuesday, August 2, 2016 at 8:21:57 PM UTC+12, Valeria Munoz wrote:
> 
> I have downloaded Python 3.6.0a3 on a Mac 10.9.5 and realized that I also
> need to download an Active Tcl for it.

Python should already come with Tk <https://docs.python.org/3/library/tk.html>. Tcl is an entirely separate language from Python. While it is where Tk originated, you don’t need it to use Tk with Python.

[toc] | [prev] | [next] | [standalone]


#112367

FromZachary Ware <zachary.ware+pylist@gmail.com>
Date2016-08-04 22:06 -0500
Message-ID<mailman.185.1470366432.6033.python-list@python.org>
In reply to#112365
On Thu, Aug 4, 2016 at 8:25 PM, Lawrence D’Oliveiro
<lawrencedo99@gmail.com> wrote:
> On Tuesday, August 2, 2016 at 8:21:57 PM UTC+12, Valeria Munoz wrote:
>>
>> I have downloaded Python 3.6.0a3 on a Mac 10.9.5 and realized that I also
>> need to download an Active Tcl for it.
>
> Python should already come with Tk <https://docs.python.org/3/library/tk.html>. Tcl is an entirely separate language from Python. While it is where Tk originated, you don’t need it to use Tk with Python.

This is very inaccurate.  From the first line of the second paragraph
at your link, "The tkinter package is a thin object-oriented layer on
top of Tcl/Tk."

Tk is very closely tied to Tcl (in fact a significant fraction of Tk
is implemented in Tcl), and a Tcl interpreter (of the exact same
version) is required to use Tk.  Python's tkinter package dynamically
links to libtcl and libtk to embed a Tcl interpreter, and all GUI
interactions are handled by Tcl calling Python callbacks.

-- 
Zach

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web