From 3c2c080fed1203bc2ffb8f21297109e5cbfc1850 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Sun, 07 Feb 2010 20:48:33 +0000 Subject: error messages for missing media files --- diff --git a/images/nofile.svg b/images/nofile.svg new file mode 100644 index 0000000..e46c576 --- /dev/null +++ b/images/nofile.svg @@ -0,0 +1,108 @@ + + + + + + + + + + + + + + + + X + + + + ??? + + + + + + + + ! + + + + + + diff --git a/images/nojournal.svg b/images/nojournal.svg new file mode 100644 index 0000000..fd8ec5a --- /dev/null +++ b/images/nojournal.svg @@ -0,0 +1,144 @@ + + + + + + + + + + + + + + + + + + + + + X + + + + ??? + + + + + + + + ! + + + + + + + + + diff --git a/taconstants.py b/taconstants.py index dc4a296..4616a2c 100644 --- a/taconstants.py +++ b/taconstants.py @@ -506,7 +506,7 @@ OVERLAY_SHAPES = ['Cartesian', 'Cartesian_labeled', 'polar'] STATUS_SHAPES = ['status', 'info', 'nostack', 'noinput', 'emptyheap', 'emptybox', 'nomedia', 'nocode', 'overflowerror', - 'syntaxerror'] + 'syntaxerror', 'nofile', 'nojournal'] # # Legacy names 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), -- cgit v0.9.1