summaryrefslogtreecommitdiffstats
path: root/Demo/sgi/video/Vb.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1993-05-10 15:45:49 (GMT)
committerGuido van Rossum <guido@python.org>1993-05-10 15:45:49 (GMT)
commitc17c84fbe3a002c3aaae19a3d19c6ebf6f1311ca (patch)
treec629caf4395b5f61db78c3ffc81b122311579d4a /Demo/sgi/video/Vb.py
parent9f42f4fe432282f282d0d297baf359dbaee03118 (diff)
downloadcpython-c17c84fbe3a002c3aaae19a3d19c6ebf6f1311ca.zip
cpython-c17c84fbe3a002c3aaae19a3d19c6ebf6f1311ca.tar.gz
cpython-c17c84fbe3a002c3aaae19a3d19c6ebf6f1311ca.tar.bz2
Disconnect from VCR when switching modes.
Wait for VCR ready and set VCR mode to DNR when initializing VCR. Fix type error in getfloat().
Diffstat (limited to 'Demo/sgi/video/Vb.py')
-rwxr-xr-xDemo/sgi/video/Vb.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/Demo/sgi/video/Vb.py b/Demo/sgi/video/Vb.py
index da868f1..e6fecdf 100755
--- a/Demo/sgi/video/Vb.py
+++ b/Demo/sgi/video/Vb.py
@@ -228,6 +228,8 @@ class VideoBagOfTricks:
self.rebindvideo()
def cb_vmode(self, *args):
+ if self.vcr:
+ self.vcr = None
self.vmode = self.c_vmode.get_choice()
self.form.freeze_form()
self.g_cont.hide_object()
@@ -433,7 +435,10 @@ class VideoBagOfTricks:
import VCR
try:
self.vcr = VCR.VCR().init()
+ self.vcr.wait()
+ self.vcr.fmmode('dnr')
except VCR.error, msg:
+ self.vcr = None
self.b_capture.set_button(0)
fl.show_message('VCR error', str(msg), '')
return
@@ -615,7 +620,7 @@ class VideoBagOfTricks:
value = float(eval(field.get_input()))
except:
value = float(default)
- field.set_input(value)
+ field.set_input(`value`)
return value
# Audio stuff