This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rabbidous
Recipients r.david.murray, rabbidous, terry.reedy
Date 2011-08-12.18:26:56
SpamBayes Score 1.1959365e-05
Marked as misclassified No
Message-id <1313173617.61.0.404517969073.issue12723@psf.upfronthosting.co.za>
In-reply-to
Content
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 set the validatecommand option to a function handle that returns true or false to determine whether the input was valid.

I will try and code an example over the weekend.
History
Date User Action Args
2011-08-12 18:26:57rabbidoussetrecipients: + rabbidous, terry.reedy, r.david.murray
2011-08-12 18:26:57rabbidoussetmessageid: <1313173617.61.0.404517969073.issue12723@psf.upfronthosting.co.za>
2011-08-12 18:26:57rabbidouslinkissue12723 messages
2011-08-12 18:26:56rabbidouscreate