[issue15133] tkinter.BooleanVar.get() behavior and docstring disagree

Mark Summerfield report at bugs.python.org
Sat Jun 23 18:55:20 CEST 2012


Mark Summerfield <mark at qtrac.eu> added the comment:

Did you mean formal test code? Or just an example like this:

from tkinter import *
tk = Tk()
bv = BooleanVar()
print(bv.get(), type(bv.get()))
bv.set(True)
print(bv.get(), type(bv.get()))
bv.set(False)
print(bv.get(), type(bv.get()))

### output ###
0 <class 'int'>
1 <class 'int'>
0 <class 'int'>

----------

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


More information about the Python-bugs-list mailing list