Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #10378

Re: Validating Entry in tkinter

From Giacomo Boffi <giacomo.boffi@polimi.it>
Newsgroups comp.lang.python
Subject Re: Validating Entry in tkinter
Date 2011-07-27 11:24 +0200
Organization The Sun and The Rain
Message-ID <86wrf4oz40.fsf@aiuole.stru.polimi.it> (permalink)
References <0417c151-9cfa-42b7-8476-17c732f91396@glegroupsg2000goo.googlegroups.com>

Show all headers | View raw


Saul Spatz <saul.spatz@gmail.com> writes:

> In tcl/tk an Entry widget can be set to validate its contents with
> the validate option. [...]  Can one do something like this in
> tkinter?

i read the thread and nobody mentioned the python mega widget (Pmw)
toolkit, from whose docs i quote the following

Pmw.EntryField() - entry widget with validation

    [...]

    Validation is performed early, at each keystroke or other event
    which modifies the text. However, if partially valid text is
    permitted, the validity of the entered text can be checked just
    before it is to be used, which is a form of late validation.

    [...]

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Validating Entry in tkinter Saul Spatz <saul.spatz@gmail.com> - 2011-07-24 17:11 -0700
  Re: Validating Entry in tkinter rantingrick <rantingrick@gmail.com> - 2011-07-24 18:03 -0700
  Re: Validating Entry in tkinter Peter Otten <__peter__@web.de> - 2011-07-25 09:32 +0200
  Re: Validating Entry in tkinter Wolfgang Meiners <WolfgangMeiners01@web.de> - 2011-07-25 10:48 +0200
  Re: Validating Entry in tkinter Giacomo Boffi <giacomo.boffi@polimi.it> - 2011-07-27 11:24 +0200

csiph-web