Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/talogo.py
diff options
context:
space:
mode:
authorWalter Bender <walter@walter-laptop.(none)>2010-02-07 20:48:33 (GMT)
committer Walter Bender <walter@walter-laptop.(none)>2010-02-07 20:48:33 (GMT)
commit3c2c080fed1203bc2ffb8f21297109e5cbfc1850 (patch)
tree200cbfde48179bd6b73988ee19e7293823bee566 /talogo.py
parentd033f704b8eef619f3f62b12264e6158a95edc1f (diff)
error messages for missing media files
Diffstat (limited to 'talogo.py')
-rw-r--r--talogo.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/talogo.py b/talogo.py
index 6fb7a2a..b1dd8f4 100644
--- a/talogo.py
+++ b/talogo.py
@@ -888,6 +888,7 @@ class LogoCode:
try:
dsobject = datastore.get(media[6:])
except:
+ self.tw.showlabel('nojournal', media[6:])
print "Couldn't open Journal object %s" % (media[6:])
if movie_media_type(dsobject.file_path):
play_movie_from_file(self,
@@ -904,6 +905,7 @@ class LogoCode:
pixbuf = gtk.gdk.pixbuf_new_from_file_at_size(
media[6:], int(w), int(h))
except:
+ self.tw.showlabel('nofile', media[6:])
print "Couldn't open media object %s" % (media[6:])
if pixbuf is not None:
self.tw.canvas.draw_pixbuf(pixbuf, 0, 0, int(x), int(y),