mirror of
https://github.com/python/cpython.git
synced 2024-12-01 13:55:45 +08:00
Change the default values for IntVar and DoubleVar to numbers (they
were strings, accidentally).
This commit is contained in:
parent
671dc20efc
commit
0b96b945b8
@ -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):
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user