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


Groups > comp.lang.python > #93835

Re: beginners choice: wx or tk?

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.000
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'python,': 0.02; 'cpython': 0.05; 'removes': 0.05; 'dependency': 0.07; 'turtle': 0.07; 'imports': 0.09; 'optional': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'separately': 0.09; 'tcl/tk': 0.09; 'python': 0.10; 'jan': 0.11; 'importing': 0.15; 'downloaded.': 0.16; 'installer,': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'stdlib.': 0.16; 'tkinter.': 0.16; 'wrote:': 0.16; 'library': 0.20; 'windows': 0.20; 'not,': 0.22; 'lawrence': 0.22; 'mixed': 0.22; 'tkinter': 0.22; 'am,': 0.23; 'header:In-Reply-To:1': 0.24; 'header:User- Agent:1': 0.26; 'header:X-Complaints-To:1': 0.26; 'linux': 0.26; 'external': 0.27; 'point.': 0.27; 'indirectly': 0.29; 'code': 0.30; 'maybe': 0.33; 'michael': 0.33; 'idle': 0.33; 'surely': 0.33; 'but': 0.36; 'there': 0.36; '(and': 0.36; 'depends': 0.36; 'modules': 0.36; 'to:addr:python-list': 0.36; 'subject:?': 0.36; 'subject:: ': 0.37; 'expect': 0.37; 'received:org': 0.37; 'mac': 0.37; 'thought': 0.37; 'means': 0.39; 'to:addr:python.org': 0.40; 'mark': 0.40; 'some': 0.40; 'latest': 0.64; 'believe': 0.66; 'situation': 0.67; 'mac.': 0.84; 'tkinter,': 0.84; 'received:fios.verizon.net': 0.91
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Terry Reedy <tjreedy@udel.edu>
Subject Re: beginners choice: wx or tk?
Date Tue, 14 Jul 2015 15:27:34 -0400
References <mnqnkb$dej$1@news2.informatik.uni-stuttgart.de> <mailman.412.1436607347.3674.python-list@python.org> <mo0ip3$48j$1@reader1.panix.com> <mailman.474.1436840181.3674.python-list@python.org> <mo350i$dua$3@reader1.panix.com> <55A52915.8020909@gmail.com> <mo3anq$vpv$1@ger.gmane.org>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host pool-98-114-97-173.phlapa.fios.verizon.net
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0
In-Reply-To <mo3anq$vpv$1@ger.gmane.org>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.515.1436902080.3674.python-list@python.org> (permalink)
Lines 33
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1436902080 news.xs4all.nl 2929 [2001:888:2000:d::a6]:55484
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:93835

Show key headers only | View raw


On 7/14/2015 11:43 AM, Mark Lawrence wrote:
> On 14/07/2015 16:21, Michael Torrie wrote:

>> You make a good point.  Although Tk is considered part of the standard
>> Python library (though optional),

Python-coded tkinter depends on C-coded _tkinter and both are in the 
stdlib, which means the code is in the CPython hg repository.  tcl/tk is 
an external dependency of _tkinter and is not is the stdlib.  There are 
a few other stdlib modules with such external dependencies.  The Windows 
installers include the external dependencies.  AFAIK, Linux 
distributions do not, but expect the dependencies to be already present 
or separately downloaded.  I believe the situation is mixed on Mac.  Ned 
Deily is working on include the latest tcl/tk with the Mac installer, 
but this is apparently not trivial.

> Surely if Tk is optional then IDLE is also optional, as IDLE depends on
> Tk?

Idle is in the stdlib and depends on tkinter (and maybe _tkinter), so it 
indirectly depends on tk.  Turtle and turtledemo and some tools/scripts 
also depend on tkinter.

 > But I thought that IDLE was always supplied with Python,

It is unless a distributor removes it, perhaps to bundle with tcl/tk, 
_tkinter, tkinter, turtle, and turtledemo.

Importing tkinter imports _tkinter, which fails if it cannot find tcl/tk.

-- 
Terry Jan Reedy

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


Thread

beginners choice: wx or tk? Ulli Horlacher <framstag@rus.uni-stuttgart.de> - 2015-07-11 09:28 +0000
  Re: beginners choice: wx or tk? Chris Angelico <rosuav@gmail.com> - 2015-07-11 19:35 +1000
    Re: beginners choice: wx or tk? Ulli Horlacher <framstag@rus.uni-stuttgart.de> - 2015-07-11 09:51 +0000
      Re: beginners choice: wx or tk? Chris Angelico <rosuav@gmail.com> - 2015-07-11 20:20 +1000
        Re: beginners choice: wx or tk? Ulli Horlacher <framstag@rus.uni-stuttgart.de> - 2015-07-11 22:42 +0000
          Re: beginners choice: wx or tk? Paul Rubin <no.email@nospam.invalid> - 2015-07-11 15:50 -0700
            Re: beginners choice: wx or tk? Ulli Horlacher <framstag@rus.uni-stuttgart.de> - 2015-07-11 23:04 +0000
              Re: beginners choice: wx or tk? Paul Rubin <no.email@nospam.invalid> - 2015-07-11 16:10 -0700
                Re: beginners choice: wx or tk? Ulli Horlacher <framstag@rus.uni-stuttgart.de> - 2015-07-11 23:55 +0000
                Re: beginners choice: wx or tk? Paul Rubin <no.email@nospam.invalid> - 2015-07-11 21:34 -0700
                Re: beginners choice: wx or tk? Ian Kelly <ian.g.kelly@gmail.com> - 2015-07-11 17:59 -0600
            Re: beginners choice: wx or tk? Laura Creighton <lac@openend.se> - 2015-07-12 12:00 +0200
              Re: beginners choice: wx or tk? wxjmfauth@gmail.com - 2015-07-13 05:32 -0700
      Re: beginners choice: wx or tk? John Ladasky <john_ladasky@sbcglobal.net> - 2015-07-11 10:25 -0700
        Re: beginners choice: wx or tk? Chris Angelico <rosuav@gmail.com> - 2015-07-12 03:39 +1000
        Re: beginners choice: wx or tk? Michael Torrie <torriem@gmail.com> - 2015-07-11 14:16 -0600
      Re: beginners choice: wx or tk? Jugurtha Hadjar <jugurtha.hadjar@gmail.com> - 2015-07-12 01:54 +0100
    Re: beginners choice: wx or tk? Grant Edwards <invalid@invalid.invalid> - 2015-07-13 14:42 +0000
      Re: beginners choice: wx or tk? Michael Torrie <torriem@gmail.com> - 2015-07-13 20:16 -0600
        Re: beginners choice: wx or tk? wxjmfauth@gmail.com - 2015-07-14 00:45 -0700
        Re: beginners choice: wx or tk? Grant Edwards <invalid@invalid.invalid> - 2015-07-14 14:06 +0000
          Re: beginners choice: wx or tk? Michael Torrie <torriem@gmail.com> - 2015-07-14 09:21 -0600
          Re: beginners choice: wx or tk? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-07-14 16:43 +0100
            Re: beginners choice: wx or tk? Steven D'Aprano <steve@pearwood.info> - 2015-07-15 02:53 +1000
            Re: beginners choice: wx or tk? Grant Edwards <invalid@invalid.invalid> - 2015-07-14 17:28 +0000
              Re: beginners choice: wx or tk? Chris Angelico <rosuav@gmail.com> - 2015-07-15 03:43 +1000
                Re: beginners choice: wx or tk? Grant Edwards <invalid@invalid.invalid> - 2015-07-14 18:28 +0000
          Re: beginners choice: wx or tk? Terry Reedy <tjreedy@udel.edu> - 2015-07-14 15:27 -0400
      Re: beginners choice: wx or tk? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-07-14 08:39 +0100
        Re: beginners choice: wx or tk? wxjmfauth@gmail.com - 2015-07-14 06:05 -0700
  Re: beginners choice: wx or tk? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-07-11 11:01 +0100
  Re: beginners choice: wx or tk? Christian Gollwitzer <auriocus@gmx.de> - 2015-07-11 12:19 +0200
    Re: beginners choice: wx or tk? Ulli Horlacher <framstag@rus.uni-stuttgart.de> - 2015-07-11 16:04 +0000
      Re: beginners choice: wx or tk? nickgeovanis@gmail.com - 2015-07-11 09:26 -0700
  Re: beginners choice: wx or tk? Laura Creighton <lac@openend.se> - 2015-07-11 13:27 +0200
    Re: beginners choice: wx or tk? Christian Gollwitzer <auriocus@gmx.de> - 2015-07-11 13:56 +0200
      Re: beginners choice: wx or tk? Laura Creighton <lac@openend.se> - 2015-07-11 16:48 +0200
        Re: beginners choice: wx or tk? Kevin Walzer <kw@codebykevin.com> - 2015-07-11 21:29 -0400
          Re: beginners choice: wx or tk? Ned Deily <nad@acm.org> - 2015-07-11 22:01 -0700
            Re: beginners choice: wx or tk? wxjmfauth@gmail.com - 2015-07-12 00:42 -0700
              Re: beginners choice: wx or tk? Ulli Horlacher <framstag@rus.uni-stuttgart.de> - 2015-07-12 07:55 +0000
                Re: beginners choice: wx or tk? Christian Gollwitzer <auriocus@gmx.de> - 2015-07-12 10:00 +0200
                Re: beginners choice: wx or tk? Chris Angelico <rosuav@gmail.com> - 2015-07-12 18:54 +1000
                Re: beginners choice: wx or tk? wxjmfauth@gmail.com - 2015-07-12 03:15 -0700
    Re: beginners choice: wx or tk? Ned Deily <nad@acm.org> - 2015-07-11 08:09 -0700
    Re: beginners choice: wx or tk? Ulli Horlacher <framstag@rus.uni-stuttgart.de> - 2015-07-11 16:01 +0000
      Re: beginners choice: wx or tk? Laura Creighton <lac@openend.se> - 2015-07-11 19:37 +0200
      Re: beginners choice: wx or tk? Laura Creighton <lac@openend.se> - 2015-07-11 19:55 +0200
  Re: beginners choice: wx or tk? Ian Kelly <ian.g.kelly@gmail.com> - 2015-07-11 10:33 -0600

csiph-web