[gnome-clocks] Update pycanberra from the upstream repo.
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-clocks] Update pycanberra from the upstream repo.
- Date: Tue, 4 Sep 2012 06:47:31 +0000 (UTC)
commit 5a04e2cdece3e970a559a95125f28691c1b5ccf2
Author: Paolo Borelli <pborelli gnome org>
Date: Tue Sep 4 08:45:13 2012 +0200
Update pycanberra from the upstream repo.
It now includes license information.
gnomeclocks/pycanberra.py | 14 +++++---------
1 files changed, 5 insertions(+), 9 deletions(-)
---
diff --git a/gnomeclocks/pycanberra.py b/gnomeclocks/pycanberra.py
index f21f06d..9a49db4 100644
--- a/gnomeclocks/pycanberra.py
+++ b/gnomeclocks/pycanberra.py
@@ -1,3 +1,8 @@
+##########################################################################
+# pycanberra.py: simple wrapper around most of the libcanberra public api
+# Author: Dave Barry <dave psax org>
+# License: LGPL 2.1
+##########################################################################
from ctypes import *
import exceptions
import time
@@ -599,16 +604,7 @@ class Canberra(object):
time.sleep(0.01)
if __name__ == "__main__":
- import time
canberra = Canberra()
- # canberra.change_props(CA_PROP_APPLICATION_NAME, "pycanberra test",
- # CA_PROP_APPLICATION_ID, "org.freedesktop.pycanberra.Test",
- # None)
canberra.easy_play_sync("system-ready")
- # canberra.play(1,
- # CA_PROP_EVENT_ID, "system-ready",
- # None)
- # while canberra.playing(1):
- # time.sleep(0.01)
canberra.destroy()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]