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
1 changed files with 1 additions and 1 deletions

View File

@ -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]