]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
(Tkinter.py): Fixed bug in re-implementation of OptionMenu.
authorFred Drake <fdrake@acm.org>
Mon, 21 Oct 1996 17:09:31 +0000 (17:09 +0000)
committerFred Drake <fdrake@acm.org>
Mon, 21 Oct 1996 17:09:31 +0000 (17:09 +0000)
Lib/lib-tk/Tkinter.py
Lib/tkinter/Tkinter.py

index 3a7b71423a0356a66948635b27d7ff278576d3fd..2b1f0668da5ae836cc69173959a55f1ad548a58c 100644 (file)
@@ -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):
index 3a7b71423a0356a66948635b27d7ff278576d3fd..2b1f0668da5ae836cc69173959a55f1ad548a58c 100755 (executable)
@@ -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):