diff options
| author | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2006-10-11 00:50:00 +0000 |
|---|---|---|
| committer | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2006-10-11 00:50:00 +0000 |
| commit | b47f1ee99b425af13063d2680da7aa7be4d33d27 (patch) | |
| tree | 7f495dcb0869ebad0dd24005469aa55ee1486d9e /lib/python/Screens/ParentalControlSetup.py | |
| parent | ae602961330ac8eab5312a7f8dd991f45e211709 (diff) | |
| download | enigma2-b47f1ee99b425af13063d2680da7aa7be4d33d27.tar.gz enigma2-b47f1ee99b425af13063d2680da7aa7be4d33d27.zip | |
sort list properly in ParentalControlSetup
Diffstat (limited to 'lib/python/Screens/ParentalControlSetup.py')
| -rw-r--r-- | lib/python/Screens/ParentalControlSetup.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/python/Screens/ParentalControlSetup.py b/lib/python/Screens/ParentalControlSetup.py index 944fc6a2..d17ee73e 100644 --- a/lib/python/Screens/ParentalControlSetup.py +++ b/lib/python/Screens/ParentalControlSetup.py @@ -185,16 +185,16 @@ class ParentalControlEditor(Screen): def chooseLetter(self): print "choose letter" - list = [] + mylist = [] for x in self.servicesList.keys(): if x == '&': x = ("special characters", x) else: x = (x, x) - list.append(x) - print "sorted list:", sorted(list, key=operator.itemgetter(1)) + mylist.append(x) + mylist.sort(key=operator.itemgetter(1)) print self.servicesList.keys() - self.session.openWithCallback(self.letterChosen, ChoiceBox, title=_("Show services beginning with"), list=list) + self.session.openWithCallback(self.letterChosen, ChoiceBox, title=_("Show services beginning with"), list=mylist) def letterChosen(self, result): if result is not None: |
