diff --git a/src/extra/SoundsTutorial/soundsTutorial.py b/src/extra/SoundsTutorial/soundsTutorial.py index 4ef2adce..37d9643a 100644 --- a/src/extra/SoundsTutorial/soundsTutorial.py +++ b/src/extra/SoundsTutorial/soundsTutorial.py @@ -4,7 +4,6 @@ import widgetUtils import os import paths import logging -import reverse_sort log = logging.getLogger("extra.SoundsTutorial.soundsTutorial") import soundsTutorial_constants if platform.system() == "Windows": @@ -23,8 +22,6 @@ class soundsTutorial(object): self.files = [] log.debug("Searching sound files...") [self.files.append(i[0]) for i in soundsTutorial_constants.actions] - log.debug("Alphabetizing actions...") - actions=reverse_sort.reverse_sort(self.actions) log.debug("Creating dialog...") self.dialog = UI.soundsTutorialDialog(self.actions) widgetUtils.connect_event(self.dialog.play, widgetUtils.BUTTON_PRESSED, self.on_play) diff --git a/src/extra/SoundsTutorial/soundsTutorial_constants.py b/src/extra/SoundsTutorial/soundsTutorial_constants.py index 1f79dd5f..38d3b619 100644 --- a/src/extra/SoundsTutorial/soundsTutorial_constants.py +++ b/src/extra/SoundsTutorial/soundsTutorial_constants.py @@ -1,5 +1,6 @@ # -*- coding: utf-8 -*- -actions = [ ("audio", _(u"Audio tweet.")), +import reverse_sort +actions = reverse_sort.reverse_sort([ ("audio", _(u"Audio tweet.")), ("create_timeline", _(u"User-defined buffer created.")), ("delete_timeline", _(u"User-defined buffer destroied.")), ("dm_received", _(u"Direct message received.")), @@ -22,4 +23,4 @@ actions = [ ("audio", _(u"Audio tweet.")), ("trends_updated", _(u"A trending topic buffer has been updated.")), ("tweet_timeline", _(u"New tweet in user-defined buffer.")), ("update_followers", _(u"New follower.")), - ("volume_changed", _(u"Volume changed."))] \ No newline at end of file + ("volume_changed", _(u"Volume changed."))]) \ No newline at end of file