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

2011-08-11 Thread Matthew Hemke
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 the dialog

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

2011-08-10 Thread R. David Murray
R. David Murray added the comment: But what if the empty string is valid input? This change would be backward incompatible. I think this should instead be a feature request for exposing _QueryDialog so that you can subclass it and provide your own getresult function. -- nosy: +r.dav

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

2011-08-10 Thread Matthew Hemke
Changes by Matthew Hemke : -- versions: +Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

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

2011-08-10 Thread Matthew Hemke
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 st