Fix a typo in Barry's checkin.
Reported both by Gerrit Holl and Mark Favas.
This commit is contained in:
parent
d28de23bda
commit
0ba33002e1
|
@ -1810,7 +1810,7 @@ class OptionMenu(Menubutton):
|
|||
self.menuname = menu._w
|
||||
# 'command' is the only supported keyword
|
||||
callback = kwargs.get('command')
|
||||
if kwargs.has_key('command')
|
||||
if kwargs.has_key('command'):
|
||||
del kwargs['command']
|
||||
if kwargs:
|
||||
raise TclError, 'unknown option -'+kwargs.keys()[0]
|
||||
|
|
Loading…
Reference in New Issue