mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +00:00
Fix a typo in Barry's checkin.
Reported both by Gerrit Holl and Mark Favas.
This commit is contained in:
parent
d28de23bda
commit
0ba33002e1
1 changed files with 1 additions and 1 deletions
|
|
@ -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]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue