Message222549
| Author |
serhiy.storchaka |
| Recipients |
asvetlov, crickert, gpolo, klappnase, mark, roger.serwy, serhiy.storchaka, terry.reedy, zach.ware |
| Date |
2014年07月08日.07:54:37 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1404806079.96.0.106237497412.issue15133@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Here is a patch.
1) getboolean() and BooleanVar.get() now always return bool. Wrapping the result of getboolean() into bool() is not more needed.
2) getboolean() and BooleanVar.get() now works with Tcl_Obj. This makes Tkinter more robust against future Tcl/Tk changes.
3) An exception is raised if an argument to BooleanVar.set() couldn't be considered as boolean value. An argument is converted to canonized 0/1 values. This makes errors to be exposed earlier.
Similar changes should be made for getint() and getdouble(). |
|