Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!newsgate.cistron.nl!newsgate.news.xs4all.nl!194.109.133.84.MISMATCH!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.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:bug': 0.05; 'key.': 0.07; 'suppress': 0.07; 'tkinter': 0.07; 'cursor': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'tab': 0.09; 'binding.': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:Entry': 0.16; 'subject:Tkinter': 0.16; 'walzer': 0.16; 'wrote:': 0.17; 'widget': 0.17; 'trying': 0.21; 'keys': 0.22; 'kevin': 0.23; 'header:User- Agent:1': 0.26; 'looks': 0.26; 'am,': 0.27; 'i.e.': 0.27; "doesn't": 0.28; 'header:X-Complaints-To:1': 0.28; 'behavior.': 0.29; "i'm": 0.29; 'mac': 0.32; 'to:addr:python-list': 0.33; 'another': 0.33; 'entry': 0.33; 'that,': 0.34; "can't": 0.34; 'text': 0.34; 'received:org': 0.36; 'but': 0.36; 'should': 0.36; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'ever': 0.63; 'behavior': 0.64; 'wanting': 0.65; 'special': 0.73; 'article': 0.78; 'russell': 0.84; 'navigate': 0.91; 'imagine': 0.96 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: "Russell E. Owen" Subject: Re: Tkinter bug in Entry widgets on OS X Date: Thu, 13 Sep 2012 13:33:20 -0700 Organization: University of Washington References: X-Gmane-NNTP-Posting-Host: p172-28-191-0.nat.washington.edu User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 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: 25 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1347568417 news.xs4all.nl 6860 [2001:888:2000:d::a6]:34978 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:29074 In article , Kevin Walzer wrote: > On 8/31/12 6:18 AM, Arnaud Delobelle wrote: > > I'm very inexperienced with Tkinter (I've never used it before). All > > I'm looking for is a workaround, i.e. a way to somehow suppress that > > output. > > What are you trying to do? Navigate the focus to another widget? You > should use the tab bar for that, not the arrow key. The entry widget is > a single-line widget, and doesn't have up/down as the text widget does. Based on other replies it looks as if the OP found a way to intercept the event with suitable binding. But I can answer the "why": on Mac OS X in a one-line text box up-arrow should move the cursor to the beginning and down-arrow to the end. That's standard behavior. In any case I can't imagine ever wanting to see special chars get added when arrow keys are pressed. The default behavior of the Entry widget is unfortunate. -- Russell