summaryrefslogtreecommitdiffstats
path: root/Lib/tkinter
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-12-27 15:30:20 (GMT)
committerGuido van Rossum <guido@python.org>1996-12-27 15:30:20 (GMT)
commit0b96b945b898d26d1c3497f80287f43837d17852 (patch)
treeccf456c098b199daa2624b4f804a1c1f77c20def /Lib/tkinter
parent671dc20efccf7fb75fa4aa7ac2d94593c58c4abf (diff)
downloadcpython-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/tkinter')
-rwxr-xr-xLib/tkinter/Tkinter.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/tkinter/Tkinter.py b/Lib/tkinter/Tkinter.py
index 916b3c8..1e49f6e 100755
--- a/Lib/tkinter/Tkinter.py
+++ b/Lib/tkinter/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):