Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/unit
diff options
context:
space:
mode:
authorAntoine van Gelder <antoine@g7.org.za>2007-10-30 20:45:00 (GMT)
committer Antoine van Gelder <antoine@g7.org.za>2007-10-30 20:45:00 (GMT)
commitf67a1150e9f23c8b23e83b10cc97b2a43d59215f (patch)
tree5243c8ba6ccce317cef66498699544973794286d /unit
parent9212845e255add6026000bddbe659f192e596687 (diff)
* Feature: If no sound set, play default sound: laugh_attack.au
* Fixed: Activity icon now adopts users color scheme * Fixed: Temp directory now rooted off activity.get_activity_root() * Fixed: Moved locale/ dir back to po/ * Fixed: Temp filenames now created using more secure tempfile.mkstemp() * i18n: Changed pot files to utf-8
Diffstat (limited to 'unit')
-rwxr-xr-xunit/unit.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/unit/unit.py b/unit/unit.py
index cf06715..e8eba7b 100755
--- a/unit/unit.py
+++ b/unit/unit.py
@@ -32,6 +32,16 @@ from util.decorators import Property
# test Property decorator
#
+
+from util.audioplayer import AudioPlayer
+
+audio = AudioPlayer()
+#audio.uri = '/home/antoine/Projects/dev.laptop.org/sugar-jhbuild/build/share/activities/JokeMachine.activity/resources/laugh_attack.wav'
+audio.uri = '/home/antoine/Projects/dev.laptop.org/sugar-jhbuild/source/sugar/data/startup.flac'
+audio.play()
+
+sys.exit()
+
#class Foo(object):
#@Property