summaryrefslogtreecommitdiffstats
path: root/Demo
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1993-09-28 15:28:10 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1993-09-28 15:28:10 (GMT)
commitbab2ca3eb100f02eb3d5b6e9e164b7b0ce936a1d (patch)
tree726105c31fa91f12403f605d36238e2cc4491ea4 /Demo
parentf993d287946d9fc4d9d7172bf66cce44c253851e (diff)
downloadcpython-bab2ca3eb100f02eb3d5b6e9e164b7b0ce936a1d.zip
cpython-bab2ca3eb100f02eb3d5b6e9e164b7b0ce936a1d.tar.gz
cpython-bab2ca3eb100f02eb3d5b6e9e164b7b0ce936a1d.tar.bz2
Added autoedit and cancel commands, removed debug output
Diffstat (limited to 'Demo')
-rwxr-xr-xDemo/sgi/video/VCR.py13
1 files changed, 9 insertions, 4 deletions
diff --git a/Demo/sgi/video/VCR.py b/Demo/sgi/video/VCR.py
index a6aacff..8fa87b0 100755
--- a/Demo/sgi/video/VCR.py
+++ b/Demo/sgi/video/VCR.py
@@ -116,6 +116,7 @@ N_FRAME_REC=EXP_8 + '\x92'
SEARCH_PREROLL=EXP_8 + '\x90'
EDIT_PB_STANDBY=EXP_8 + '\x96'
EDIT_PLAY=EXP_8 + '\x98'
+AUTO_EDIT=EXP_7 + '\x9c'
IN_ENTRY=EXP_7 + '\x90'
IN_ENTRY_RESET=EXP_7 + '\x91'
@@ -408,6 +409,10 @@ class VCR:
return 0
return 1
+ def autoedit(self):
+ self._check()
+ return self._endlongcmd(AUTO_EDIT)
+
def nframerec(self, num):
if not self.simplecmd(N_FRAME_REC):
return 0
@@ -487,13 +492,9 @@ class VCR:
cmd = OUT_ENTRY_SENSE
self.replycmd(cmd)
h = self._getnumber(2)
- print 'h=',h
m = self._getnumber(2)
- print 'm=',m
s = self._getnumber(2)
- print 's=',s
f = self._getnumber(2)
- print 'f=',f
return (h, m, s, f)
def inentry(self, arg):
@@ -528,3 +529,7 @@ class VCR:
else:
raise error, 'Arg should be +,-,reset,load or (h,m,s,f)'
return self.simplecmd(cmd)
+
+ def cancel(self):
+ d = self.simplecmd(CL)
+ self.busy_cmd = None