diff --git a/Lib/tkinter/__init__.py b/Lib/tkinter/__init__.py index fec56553e4..4789ef94bd 100644 --- a/Lib/tkinter/__init__.py +++ b/Lib/tkinter/__init__.py @@ -524,7 +524,7 @@ def __eq__(self, other): if not isinstance(other, Variable): return NotImplemented return self.__class__.__name__ == other.__class__.__name__ \ - and self._name == other._name + and self.get() == other.get() class StringVar(Variable):