mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
Use of 'filter' in keybindingDialog.py was causing
custom key assignment to fail. Patch 5707 amaury.forgeotdarc.
This commit is contained in:
parent
7195963aa2
commit
5c32f671f6
2 changed files with 4 additions and 1 deletions
|
@ -3,6 +3,9 @@ What's New in IDLE 3.1b1?
|
||||||
|
|
||||||
*Release date: XX-XXX-09*
|
*Release date: XX-XXX-09*
|
||||||
|
|
||||||
|
- Use of 'filter' in keybindingDialog.py was causing custom key assignment to
|
||||||
|
fail. Patch 5707 amaury.forgeotdarc.
|
||||||
|
|
||||||
|
|
||||||
What's New in IDLE 3.1a1?
|
What's New in IDLE 3.1a1?
|
||||||
=========================
|
=========================
|
||||||
|
|
|
@ -168,7 +168,7 @@ class GetKeysDialog(Toplevel):
|
||||||
|
|
||||||
def GetModifiers(self):
|
def GetModifiers(self):
|
||||||
modList = [variable.get() for variable in self.modifier_vars]
|
modList = [variable.get() for variable in self.modifier_vars]
|
||||||
return filter(None, modList)
|
return [mod for mod in modList if mod]
|
||||||
|
|
||||||
def ClearKeySeq(self):
|
def ClearKeySeq(self):
|
||||||
self.listKeysFinal.select_clear(0,END)
|
self.listKeysFinal.select_clear(0,END)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue