diff options
author | Florent Xicluna <florent.xicluna@gmail.com> | 2010-04-02 08:15:26 (GMT) |
---|---|---|
committer | Florent Xicluna <florent.xicluna@gmail.com> | 2010-04-02 08:15:26 (GMT) |
commit | a7f242fa2a005082b2067a558471178a2ed3fc93 (patch) | |
tree | 5ac4b05077fdcb26197dd74b28ddd888588b23ce /Lib/idlelib/configDialog.py | |
parent | d630c04ab1ab35e2ec6eeeaba9bdcb9f8e730e78 (diff) | |
download | cpython-a7f242fa2a005082b2067a558471178a2ed3fc93.zip cpython-a7f242fa2a005082b2067a558471178a2ed3fc93.tar.gz cpython-a7f242fa2a005082b2067a558471178a2ed3fc93.tar.bz2 |
#7092: Drop the cmp argument.
Diffstat (limited to 'Lib/idlelib/configDialog.py')
-rw-r--r-- | Lib/idlelib/configDialog.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/Lib/idlelib/configDialog.py b/Lib/idlelib/configDialog.py index d0b2155..dbaedc7 100644 --- a/Lib/idlelib/configDialog.py +++ b/Lib/idlelib/configDialog.py @@ -989,16 +989,11 @@ class ConfigDialog(Toplevel): self.SetThemeType() ##load theme element option menu themeNames=self.themeElements.keys() - themeNames.sort(self.__ThemeNameIndexCompare) + themeNames.sort(key=lambda x: self.themeElements[x][1]) self.optMenuHighlightTarget.SetMenu(themeNames,themeNames[0]) self.PaintThemeSample() self.SetHighlightTarget() - def __ThemeNameIndexCompare(self,a,b): - if self.themeElements[a][1]<self.themeElements[b][1]: return -1 - elif self.themeElements[a][1]==self.themeElements[b][1]: return 0 - else: return 1 - def LoadKeyCfg(self): ##current keys type radiobutton self.keysAreBuiltin.set(idleConf.GetOption('main','Keys','default', |