From bbbb8ae79008517116c4dcde85037200996c83f7 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Tue, 02 Feb 2010 21:38:00 +0000 Subject: refactored hover help --- (limited to 'tagplay.py') 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() -- cgit v0.9.1