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


Groups > comp.lang.python > #112367

Re: Tcl/Tk for Python 3.6.0a3 on Os X 10.9.5

From Zachary Ware <zachary.ware+pylist@gmail.com>
Newsgroups comp.lang.python
Subject Re: Tcl/Tk for Python 3.6.0a3 on Os X 10.9.5
Date 2016-08-04 22:06 -0500
Message-ID <mailman.185.1470366432.6033.python-list@python.org> (permalink)
References <fd3b3256-510c-407b-8ff0-627a26d31287@googlegroups.com> <2eab4d10-f648-46bb-97b9-2bd699b69561@googlegroups.com> <CAKJDb-NDiFfUkM7ACw507w6Ms3P6+40Zhhk5jP8hWX+1VUEf5A@mail.gmail.com>

Show all headers | View raw


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

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

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

csiph-web