diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py index 3a7b71423a0..2b1f0668da5 100644 --- a/Lib/lib-tk/Tkinter.py +++ b/Lib/lib-tk/Tkinter.py @@ -1528,7 +1528,7 @@ class _setit: self.__var = var def __call__(self, *args): - self.__var.set(value) + self.__var.set(self.__value) class OptionMenu(Menubutton): def __init__(self, master, variable, value, *values): diff --git a/Lib/tkinter/Tkinter.py b/Lib/tkinter/Tkinter.py index 3a7b71423a0..2b1f0668da5 100755 --- a/Lib/tkinter/Tkinter.py +++ b/Lib/tkinter/Tkinter.py @@ -1528,7 +1528,7 @@ class _setit: self.__var = var def __call__(self, *args): - self.__var.set(value) + self.__var.set(self.__value) class OptionMenu(Menubutton): def __init__(self, master, variable, value, *values):