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)>2009-10-11 17:59:57 (GMT)
committer Walter Bender <walter@walter-laptop.(none)>2009-10-11 17:59:57 (GMT)
commit5ea395ba29c9debb2095e5277ac1d04092ffc3a2 (patch)
tree148cb9525d97037e78f5f731cf8af550d6688b6c /talogo.py
parenta5232a0be3070d4dc4739b97600e245f8d59e9ce (diff)
overflowerror alert
Diffstat (limited to 'talogo.py')
-rw-r--r--talogo.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/talogo.py b/talogo.py
index 5008ea2..f0ecc65 100644
--- a/talogo.py
+++ b/talogo.py
@@ -627,9 +627,11 @@ def show_picture(lc, media, x, y, w, h):
raise logoerror("#nomedia")
# check to see if it is a movie
print dsobject.file_path
+ print "object has file suffix of: " + dsobject.file_path[-4:]
if dsobject.file_path[-4:] == '.ogv' or \
dsobject.file_path[-4:] == '.vob' or \
dsobject.file_path[-4:] == '.mp4' or \
+ dsobject.file_path[-4:] == '.wmv' or \
dsobject.file_path[-4:] == '.mov':
print "playing movie x:" + str(x) + " y:" + str(y) + " w:" \
+ str(w) + " h:" + str(h)
@@ -1012,6 +1014,8 @@ def kbinput(lc):
lc.tw.keypress = ""
def showlabel(lc,label):
+ print "showlabel: " + str(label)
+ print lc
if label=='#nostack':
shp = 'nostack'
label=''
@@ -1033,8 +1037,12 @@ def showlabel(lc,label):
elif label=='#syntaxerror':
shp = 'syntaxerror'
label=''
+ elif label=='#overflowerror':
+ shp = 'overflowerror'
+ label=''
else:
shp = 'status'
+ print shp
setshape(lc.tw.status_spr, lc.tw.status_shapes[shp])
setlabel(lc.tw.status_spr, label)
setlayer(lc.tw.status_spr, 710)