Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tagplay.py
diff options
context:
space:
mode:
Diffstat (limited to 'tagplay.py')
-rw-r--r--tagplay.py16
1 files changed, 1 insertions, 15 deletions
diff --git a/tagplay.py b/tagplay.py
index dff272d..00d0019 100644
--- a/tagplay.py
+++ b/tagplay.py
@@ -37,10 +37,8 @@ gobject.threads_init()
try:
from sugar.datastore import datastore
-except:
- # probably launched from outside of Sugar
+except ImportError:
pass
-from talogo import *
class Gplay:
@@ -145,18 +143,6 @@ def play_audio(lc, filepath):
lc.gplay = Gplay()
lc.gplay.setFile("file:///" + filepath)
-def play_video(lc, media, x, y, w, h):
- print "loading media id: " + str(media)
- if media == "" or media[6:] == "":
- raise logoerror("#nomedia")
- elif media[6:] != "None":
- try:
- dsobject = datastore.get(media[6:])
- print dsobject.file_path
- except:
- print "Couldn't open id: " + str(media[6:])
- play_dsobject(lc, dsobject, x, y, w, h)
-
def play_movie_from_file(lc, filepath, x, y, w, h):
if lc.gplay == None:
lc.gplay = Gplay()