Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!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.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:bug': 0.05; 'desired,': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'unexpected': 0.09; 'programmer': 0.11; 'assume': 0.11; 'suggest': 0.11; 'aug': 0.13; 'caveat': 0.16; 'inputs': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:Entry': 0.16; 'subject:Tkinter': 0.16; 'widget': 0.17; 'accepting': 0.18; '(not': 0.20; 'written': 0.20; 'sort': 0.21; 'all,': 0.21; 'supposed': 0.21; "i'd": 0.22; 'insert': 0.23; "i've": 0.23; 'random': 0.24; 'interface': 0.27; 'header:X -Complaints-To:1': 0.28; 'handled': 0.29; 'probably': 0.29; 'becomes': 0.30; 'fri,': 0.30; 'code': 0.31; 'url:home': 0.33; 'to:addr:python-list': 0.33; 'entry': 0.33; 'agree': 0.34; 'there': 0.35; 'received:org': 0.36; 'but': 0.36; 'characters': 0.36; 'should': 0.36; 'charset:us-ascii': 0.36; 'level': 0.37; 'subject:: ': 0.38; 'some': 0.38; 'things': 0.38; 'to:addr:python.org': 0.39; 'where': 0.40; 'header:Received:5': 0.40; 'think': 0.40; 'therefore': 0.65; '1st': 0.81; 'moron': 0.84; 'dennis': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dennis Lee Bieber Subject: Re: Tkinter bug in Entry widgets on OS X Date: Fri, 31 Aug 2012 15:30:36 -0400 Organization: > Bestiaria Support Staff < References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: adsl-76-249-27-79.dsl.klmzmi.sbcglobal.net X-Newsreader: Forte Agent 3.3/32.846 X-No-Archive: YES 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: 23 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1346441448 news.xs4all.nl 6890 [2001:888:2000:d::a6]:50876 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:28190 On Fri, 31 Aug 2012 15:41:01 GMT, Alister declaimed the following in gmane.comp.python.general: > I agree that it is unexpected in a single line entry box but isn't the 1st > rule of user interface design to assume the user is a moron & will do > things they are not supposed to do? > > Therefore invalid inputs should be handled gracefully (not just insert > random characters) which is what I think the original poster is > suggesting. To which I'd suggest the programmer (vs the user), probably needs to code some sort of per-character validation check... After all, there may be situations where accepting pretty much any key-code is desired, and if the widget filters characters before they get to the programmer level that becomes impossible. caveat -- I've only written one simple form using Tkinter, so what do I know... -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/