Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed6.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.006 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'anyway.': 0.04; 'debug': 0.05; 'linux,': 0.05; 'bits': 0.07; 'finished,': 0.07; 'setup.py': 0.07; 'x-mailer:evolution 2.28.3': 0.07; 'python': 0.09; 'source,': 0.15; '2.7.3': 0.16; '_ssl': 0.16; 'bits,': 0.16; 'bz2': 0.16; 'idea:': 0.16; "module's": 0.16; 'received:195.186': 0.16; 'received:bluewin.ch': 0.16; 'smoothly,': 0.16; 'then?': 0.16; 'wrote:': 0.17; 'detect': 0.17; 'obviously': 0.18; 'changes': 0.20; 'error.': 0.21; 'work.': 0.23; 'this:': 0.23; 'installed': 0.23; 'random': 0.24; 'header': 0.24; 'header:In- Reply-To:1': 0.25; 'guess': 0.27; '2.6': 0.27; 'installing': 0.27; 'went': 0.28; 'run': 0.28; 'post': 0.28; 'piece': 0.29; 'readline': 0.29; 'yes.': 0.29; 'skip:_ 10': 0.29; 'probably': 0.29; "i'm": 0.29; 'fri,': 0.30; 'on,': 0.30; 'up.': 0.31; 'code': 0.31; 'google,': 0.32; '+0200,': 0.33; 'idle': 0.33; 'venture': 0.33; 'to:addr:python-list': 0.33; 'another': 0.33; 'that,': 0.34; "can't": 0.34; 'next': 0.35; 'but': 0.36; 'modules': 0.36; "didn't": 0.36; 'too': 0.36; 'available.': 0.37; 'reported': 0.37; 'does': 0.37; 'rather': 0.37; 'subject:: ': 0.38; 'easier': 0.38; 'advice': 0.39; 'to:addr:python.org': 0.39; 'received:192': 0.39; 'build': 0.39; 'received:192.168': 0.40; 'your': 0.60; 'further': 0.61; 'back': 0.62; 'upgrading': 0.62; 'different': 0.63; 'information,': 0.63; 'more': 0.63; 'due': 0.66; 'hours': 0.66; 'hesitate': 0.66; 'received:ch': 0.69; 'day': 0.73; 'dumb': 0.84; 'hardly': 0.84; 'otten': 0.84; 'subject:gets': 0.84; 'territory': 0.84; 'lucky': 0.96 Subject: Re: Tkinter.event.widget: handler gets name instead of widget. From: Frederic Rentsch To: python-list@python.org In-Reply-To: References: <1341782353.2041.136.camel@hatchbox-one> <89816e26-fc20-4cdc-ba6c-f252231d43ba@f16g2000yqg.googlegroups.com> <1342119234.2313.42.camel@hatchbox-one> Content-Type: text/plain; charset="UTF-8" Date: Fri, 13 Jul 2012 22:24:59 +0200 Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Content-Transfer-Encoding: 7bit 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: 65 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1342211108 news.xs4all.nl 6867 [2001:888:2000:d::a6]:36970 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:25290 On Fri, 2012-07-13 at 09:26 +0200, Peter Otten wrote: > Frederic Rentsch wrote: > > > I'm sorry I can't post an intelligible piece that does NOT work. I > > obviously can't post the whole thing. > > How about a pastebin then? Or even bitbucket/github as you need to track > changes anyway? > > > It is way too convoluted. > > "Convoluted" code is much easier to debug than no code ;) > > Another random idea: run your code on a more recent python/tcl installation. > If you are lucky you get a different error. > So many good ideas! I can hardly keep up. Let me try anyway. I hesitate to ask dumb questions, but I guess I have to. What is python/tcl? I enlisted Google, Synaptic, apt-cache, apt-get, dpkg and scouring the profusion I couldn't detect any actionable piece of information, undoubtedly due to my modest expertise in matters of system administration. 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. Accustomed to installing packages I had to venture into the unknown territory of compiling source, because no package was available. (Windows, Apple, yes. Linux, no). The compile went smoothly, but ended like this: ... 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 To find the necessary bits, look in setup.py in detect_modules() for the module's name. I didn't know what to look for in setup.py, spent a couple of hours turning stones and encountered evidence of a bunch of missing header files, probably of other modules which I had installed rather than compiled. 2.7.3 came up in terminals, but not in an IDLE window. No wonder, _tkinter was reported not found; and so many others with it that, anxious to get on, I stopped venturing further into this labyrinth, erased everything 2.7.3 and now I'm back to 2.6 and would greatly appreciate advice on upgrading python/tcl. I shall look at pastebin and bitbucket/github right away. Frederic