(Tkinter.py): Fixed bug in re-implementation of OptionMenu.
diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py
index 3a7b714..2b1f066 100644
--- a/Lib/lib-tk/Tkinter.py
+++ b/Lib/lib-tk/Tkinter.py
@@ -1528,7 +1528,7 @@
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 3a7b714..2b1f066 100755
--- a/Lib/tkinter/Tkinter.py
+++ b/Lib/tkinter/Tkinter.py
@@ -1528,7 +1528,7 @@
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):