diff options
author | Guido van Rossum <guido@python.org> | 1996-12-27 15:30:20 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1996-12-27 15:30:20 (GMT) |
commit | 0b96b945b898d26d1c3497f80287f43837d17852 (patch) | |
tree | ccf456c098b199daa2624b4f804a1c1f77c20def /Lib/lib-tk/Tkinter.py | |
parent | 671dc20efccf7fb75fa4aa7ac2d94593c58c4abf (diff) | |
download | cpython-0b96b945b898d26d1c3497f80287f43837d17852.zip cpython-0b96b945b898d26d1c3497f80287f43837d17852.tar.gz cpython-0b96b945b898d26d1c3497f80287f43837d17852.tar.bz2 |
Change the default values for IntVar and DoubleVar to numbers (they
were strings, accidentally).
Diffstat (limited to 'Lib/lib-tk/Tkinter.py')
-rw-r--r-- | Lib/lib-tk/Tkinter.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py index 916b3c8..1e49f6e 100644 --- a/Lib/lib-tk/Tkinter.py +++ b/Lib/lib-tk/Tkinter.py @@ -101,14 +101,14 @@ class StringVar(Variable): return self._tk.globalgetvar(self._name) class IntVar(Variable): - _default = "0" + _default = 0 def __init__(self, master=None): Variable.__init__(self, master) def get(self): return self._tk.getint(self._tk.globalgetvar(self._name)) class DoubleVar(Variable): - _default = "0.0" + _default = 0.0 def __init__(self, master=None): Variable.__init__(self, master) def get(self): |