Path: csiph.com!usenet.pasdenom.info!gegeweb.org!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'bits': 0.07; 'finished,': 0.07; 'interpreter.': 0.07; 'tkinter': 0.07; 'python': 0.09; '(same': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'tcl/tk': 0.09; 'terry': 0.09; '_ssl': 0.16; 'bz2': 0.16; 'idea:': 0.16; 'idle.': 0.16; 'message-id:@dough.gmane.org': 0.16; 'modules).': 0.16; 'received:80.91.229.3': 0.16; 'received:dip.t-dialin.net': 0.16; 'received:plane.gmane.org': 0.16; 'received:t-dialin.net': 0.16; 'reedy': 0.16; 'wrote:': 0.17; 'package.': 0.17; '>>>': 0.18; 'meant': 0.21; 'latter': 0.22; 'random': 0.24; 'header:User- Agent:1': 0.26; 'separate': 0.27; 'header:X-Complaints-To:1': 0.28; 'run': 0.28; 'readline': 0.29; 'no,': 0.29; 'skip:_ 10': 0.29; 'install': 0.29; 'fri,': 0.30; 'code': 0.31; 'print': 0.32; '+0200,': 0.33; 'to:addr:python-list': 0.33; 'another': 0.33; 'version': 0.34; 'pm,': 0.35; 'next': 0.35; 'received:org': 0.36; 'but': 0.36; 'modules': 0.36; 'too': 0.36; 'two': 0.37; 'subject:: ': 0.38; 'easier': 0.38; 'some': 0.38; 'to:addr:python.org': 0.39; 'easily': 0.39; 'build': 0.39; 'header:Received:5': 0.40; 'your': 0.60; 'managers': 0.60; 'first': 0.61; 'upgrading': 0.62; 'more': 0.63; 'matter.': 0.65; 'believe': 0.69; 'day': 0.73; 'yourself': 0.77; 'clearer': 0.84; 'otten': 0.84; 'subject:gets': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Peter Otten <__peter__@web.de> Subject: Re: Tkinter.event.widget: handler gets name instead of widget. Date: Sat, 14 Jul 2012 09:47:30 +0200 Organization: None References: <1341782353.2041.136.camel@hatchbox-one> <89816e26-fc20-4cdc-ba6c-f252231d43ba@f16g2000yqg.googlegroups.com> <1342119234.2313.42.camel@hatchbox-one> <1342211099.2350.68.camel@hatchbox-one> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Gmane-NNTP-Posting-Host: p5084b758.dip.t-dialin.net User-Agent: KNode/4.7.3 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 49 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1342252047 news.xs4all.nl 6933 [2001:888:2000:d::a6]:60533 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:25307 Terry Reedy wrote: > On 7/13/2012 4:24 PM, Frederic Rentsch wrote: >> On Fri, 2012-07-13 at 09:26 +0200, Peter Otten wrote: > >>> Another random idea: run your code on a more recent python/tcl >>> installation. > > That might have been clearer as python + tcl/tk installation. Yes, sorry; I meant that both the python and tcl/tk version matter. You can find out the latter with $ python -c 'import Tkinter as tk; print tk.TclVersion, tk.TkVersion' 8.5 8.5 >> I next spent a day with an attempt to upgrade to Python 2.7.3, >> figuring that that might simultaneously take care of upgrading tcl. > > No, two completely separate actions. > >> ... build finished, but the necessary bits to build these modules were >> not found: >> >> _bsddb >> _curses >> _curses_panel >> _sqlite3 >> _ssl >> _tkinter >> bsddb185 >> bz2 >> dbm >> gdbm >> readline >> sunaudiodev > > I believe _tkinter is the only one of those you need to run idle. > > You need tcl/tk installed/compiled first to compile python with > _tkinter. Easier on *nix than windows. Many *nix systems come with > tcl/tk or easily install it with their package managers (same with some > of the other prerequisites for other modules). If you don't want to compile tcl/tk yourself you need to install the tk-dev package. I recommend that you install libreadline-dev, too -- without readline it is painful to use the interactive interpreter.