Matthew Hemke added the comment:
I'm not sure if I misunderstood you, or you misunderstood me, but adding an
option to the askstring dialog that would take a function handle would also
allow you to use it for things other than strings (ints,etc.)
Tkinter Entry does this: you se
Matthew Hemke added the comment:
What about adding a validatecommand option like on Tkinter.Entry?
For what I am trying to do it was sort of a kludge to validate the entry
because an empty string was invalid, but in the interface design, it would have
been "rude" to validate after
Changes by Matthew Hemke :
--
versions: +Python 2.7
___
Python tracker
<http://bugs.python.org/issue12723>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Matthew Hemke :
tkSimpleDialog.askstring allows empty input. The attached patch adds validation
to the input to ensure it is not empty.
--
components: Tkinter
files: askstring.patch
keywords: patch
messages: 141868
nosy: rabbidous
priority: normal
severity: normal