Message141985
| 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:57 | rabbidous | set | recipients:
+ rabbidous, terry.reedy, r.david.murray |
| 2011年08月12日 18:26:57 | rabbidous | set | messageid: <1313173617.61.0.404517969073.issue12723@psf.upfronthosting.co.za> |
| 2011年08月12日 18:26:57 | rabbidous | link | issue12723 messages |
| 2011年08月12日 18:26:56 | rabbidous | create |
|