summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1996-10-21 17:09:31 (GMT)
committerFred Drake <fdrake@acm.org>1996-10-21 17:09:31 (GMT)
commit0c373691ae417d7ddb03f1107b6dee231902f048 (patch)
tree4f10610989dda67b3a02cb1d62249e1d1111b40a /Lib
parent28574b557b40b8ebc964e0b5f27da42f9b4aa611 (diff)
downloadcpython-0c373691ae417d7ddb03f1107b6dee231902f048.zip
cpython-0c373691ae417d7ddb03f1107b6dee231902f048.tar.gz
cpython-0c373691ae417d7ddb03f1107b6dee231902f048.tar.bz2
(Tkinter.py): Fixed bug in re-implementation of OptionMenu.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/lib-tk/Tkinter.py2
-rwxr-xr-xLib/tkinter/Tkinter.py2
2 files changed, 2 insertions, 2 deletions
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 @@ 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 3a7b714..2b1f066 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):