Merge pull request #11 from codeofdusk/next-gen

More alphabetization.
This commit is contained in:
Manuel Cortez 2015-04-14 11:13:18 -05:00
commit 7565d2ea57
2 changed files with 3 additions and 5 deletions

View File

@ -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)

View File

@ -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."))]
("volume_changed", _(u"Volume changed."))])