[issue12723] tkSimpleDialog.askstring shouldn't allow empty string input

Matthew Hemke report at bugs.python.org
Thu Aug 11 14:09:05 CEST 2011


Matthew Hemke <mghemke at gmail.com> 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 the dialog closes and then keep popping up another tkSimpleDialog.askstring until the input is correct. It almost makes askstring useless because I can't validate on close.

That wouldn't break backwards compatibility would it?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12723>
_______________________________________


More information about the Python-bugs-list mailing list