summaryrefslogtreecommitdiffstats
path: root/Lib
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
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')
-rw-r--r--Lib/lib-tk/Tkinter.py4
-rwxr-xr-xLib/tkinter/Tkinter.py4
2 files changed, 4 insertions, 4 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):
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):