mirror of https://github.com/python/cpython
(Tkinter.py): Fixed bug in re-implementation of OptionMenu.
This commit is contained in:
parent
28574b557b
commit
0c373691ae
|
@ -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):
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue