From: Fred Drake Date: Mon, 21 Oct 1996 17:09:31 +0000 (+0000) Subject: (Tkinter.py): Fixed bug in re-implementation of OptionMenu. X-Git-Tag: v1.4~76 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0c373691ae417d7ddb03f1107b6dee231902f048;p=thirdparty%2FPython%2Fcpython.git (Tkinter.py): Fixed bug in re-implementation of OptionMenu. --- diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py index 3a7b71423a03..2b1f0668da5a 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 3a7b71423a03..2b1f0668da5a 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):