aboutsummaryrefslogtreecommitdiff
path: root/mytest.py
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2004-10-01 13:21:35 +0000
committerFelix Domke <tmbinc@elitedvb.net>2004-10-01 13:21:35 +0000
commitddc3964ed95d01e72229dc9af968a327cd84e56c (patch)
tree93e6694c639db3d188f5b2868f6b2b2951d21d60 /mytest.py
parent1aeefd997cc362c3b37c1587c5f08891b35c3a75 (diff)
downloadenigma2-ddc3964ed95d01e72229dc9af968a327cd84e56c.tar.gz
enigma2-ddc3964ed95d01e72229dc9af968a327cd84e56c.zip
- add python, missing gui
- remove console (needs to be rewritten anyway) - eString -> std::string
Diffstat (limited to 'mytest.py')
-rw-r--r--mytest.py26
1 files changed, 26 insertions, 0 deletions
diff --git a/mytest.py b/mytest.py
new file mode 100644
index 00000000..5a9d4c84
--- /dev/null
+++ b/mytest.py
@@ -0,0 +1,26 @@
+from enigma import *
+
+def test():
+ ref = eServiceReference("4097:47:0:0:0:0:0:0:0:0:/sine_60s_100.mp3");
+
+ sc = eServiceCenterPtr()
+ print sc
+
+ if eServiceCenter.getInstance(sc):
+ print "no eServiceCenter instance!"
+ else:
+ print "now trying to play!"
+ i = iPlayableServicePtr();
+ if sc.play(ref, i):
+ print "play failed! :("
+ else:
+ print "play ruled!"
+
+ p = iPauseableServicePtr()
+ if (i.getIPausableService(p)):
+ print "no pause available"
+ else:
+ p.pause()
+ p.unpause()
+
+ return 0