Fix a typo in Barry's checkin.

Reported both by Gerrit Holl and Mark Favas.
This commit is contained in:
Guido van Rossum 2000-02-27 15:35:47 +00:00
parent d28de23bda
commit 0ba33002e1

View file

@ -1810,7 +1810,7 @@ class OptionMenu(Menubutton):
self.menuname = menu._w self.menuname = menu._w
# 'command' is the only supported keyword # 'command' is the only supported keyword
callback = kwargs.get('command') callback = kwargs.get('command')
if kwargs.has_key('command') if kwargs.has_key('command'):
del kwargs['command'] del kwargs['command']
if kwargs: if kwargs:
raise TclError, 'unknown option -'+kwargs.keys()[0] raise TclError, 'unknown option -'+kwargs.keys()[0]