(Tkinter.py): Fixed bug in re-implementation of OptionMenu.

This commit is contained in:
Fred Drake 1996-10-21 17:09:31 +00:00
parent 28574b557b
commit 0c373691ae
2 changed files with 2 additions and 2 deletions

View 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):

View 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):