mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2024-11-26 12:53:12 -06:00
Fixed the soundsTutorial. Really this time.
This commit is contained in:
parent
7facb9b020
commit
23ba46823c
@ -4,7 +4,6 @@ import widgetUtils
|
|||||||
import os
|
import os
|
||||||
import paths
|
import paths
|
||||||
import logging
|
import logging
|
||||||
import reverse_sort
|
|
||||||
log = logging.getLogger("extra.SoundsTutorial.soundsTutorial")
|
log = logging.getLogger("extra.SoundsTutorial.soundsTutorial")
|
||||||
import soundsTutorial_constants
|
import soundsTutorial_constants
|
||||||
if platform.system() == "Windows":
|
if platform.system() == "Windows":
|
||||||
@ -23,8 +22,6 @@ class soundsTutorial(object):
|
|||||||
self.files = []
|
self.files = []
|
||||||
log.debug("Searching sound files...")
|
log.debug("Searching sound files...")
|
||||||
[self.files.append(i[0]) for i in soundsTutorial_constants.actions]
|
[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...")
|
log.debug("Creating dialog...")
|
||||||
self.dialog = UI.soundsTutorialDialog(self.actions)
|
self.dialog = UI.soundsTutorialDialog(self.actions)
|
||||||
widgetUtils.connect_event(self.dialog.play, widgetUtils.BUTTON_PRESSED, self.on_play)
|
widgetUtils.connect_event(self.dialog.play, widgetUtils.BUTTON_PRESSED, self.on_play)
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- 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.")),
|
("create_timeline", _(u"User-defined buffer created.")),
|
||||||
("delete_timeline", _(u"User-defined buffer destroied.")),
|
("delete_timeline", _(u"User-defined buffer destroied.")),
|
||||||
("dm_received", _(u"Direct message received.")),
|
("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.")),
|
("trends_updated", _(u"A trending topic buffer has been updated.")),
|
||||||
("tweet_timeline", _(u"New tweet in user-defined buffer.")),
|
("tweet_timeline", _(u"New tweet in user-defined buffer.")),
|
||||||
("update_followers", _(u"New follower.")),
|
("update_followers", _(u"New follower.")),
|
||||||
("volume_changed", _(u"Volume changed."))]
|
("volume_changed", _(u"Volume changed."))])
|
Loading…
Reference in New Issue
Block a user