Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Mark Lawrence Newsgroups: comp.lang.python Subject: Re: tkinter Entry validation modes Date: Tue, 5 Apr 2016 16:12:29 +0100 Lines: 24 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de pe/YzbFR+eTxIyd8CS0B6gFfphfgM5/0Q7Gc5ygqyGgw== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.010 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'from:addr:yahoo.co.uk': 0.05; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; '...)': 0.16; 'received:80.91.229.3': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'reedy': 0.16; 'subject:Entry': 0.16; 'wrote:': 0.16; 'typical': 0.18; 'language': 0.19; 'lawrence': 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; 'entry': 0.31; 'option': 0.31; 'language.': 0.32; 'url:org': 0.36; 'possible': 0.36; 'mode': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'received:org': 0.37; 'skip:e 20': 0.39; 'to:addr:python.org': 0.40; 'mark': 0.40; 'field': 0.60; 'charset:windows-1252': 0.62; 'our': 0.64; 'python-list': 0.66; 'here': 0.66; 'url:htm': 0.75; 'pythonistas,': 0.84 X-Injected-Via-Gmane: http://gmane.org/ X-Gmane-NNTP-Posting-Host: 80.234.189.93 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: X-Mailman-Original-References: Xref: csiph.com comp.lang.python:106525 On 02/04/2016 19:45, Terry Reedy wrote: > On 4/2/2016 11:11 AM, Mark Lawrence via Python-list wrote: >> A typical call to create an Entry field would be:- >> >> e = Entry(master, validate='all', ...) >> >> Once this call has been made is it possible to change the validation >> mode at runtime? > > AFAIK, every keyword-only configuration option can be changed. > > e['validate'] = xyz > e.config(validate=xyz) > Yes, there's an write up on it here http://effbot.org/tkinterbook/tkinter-widget-configuration.htm -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence