diff options
author | Guido van Rossum <guido@python.org> | 1993-12-17 15:11:41 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1993-12-17 15:11:41 (GMT) |
commit | 21a3ff9d5d9d8cad0bc52cb603df93d38e139840 (patch) | |
tree | 533c4f8e2a23ecaa6099c868035b1463881ff1a7 /Demo/sgi/video/Vb.py | |
parent | 96b608cf6ddb4c7b670c15a365ed8b14accd5d37 (diff) | |
download | cpython-21a3ff9d5d9d8cad0bc52cb603df93d38e139840.zip cpython-21a3ff9d5d9d8cad0bc52cb603df93d38e139840.tar.gz cpython-21a3ff9d5d9d8cad0bc52cb603df93d38e139840.tar.bz2 |
Uniformly replaced init() functions by __init__() constructors.
A few simple things seem to work, I haven't tested it thouroughly
though...
Diffstat (limited to 'Demo/sgi/video/Vb.py')
-rwxr-xr-x | Demo/sgi/video/Vb.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/Demo/sgi/video/Vb.py b/Demo/sgi/video/Vb.py index 2596ca5..093bcf7 100755 --- a/Demo/sgi/video/Vb.py +++ b/Demo/sgi/video/Vb.py @@ -43,7 +43,7 @@ watchcursor.defwatch(WATCH) def main(): ## fl.set_graphics_mode(0, 1) - vb = VideoBagOfTricks().init() + vb = VideoBagOfTricks() while 1: dummy = fl.do_forms() [dummy] @@ -82,7 +82,7 @@ class VideoBagOfTricks: # Init/close stuff - def init(self): + def __init__(self): self.window = None formdef = flp.parse_form('VbForm', 'form') flp.create_full_form(self, formdef) @@ -105,7 +105,6 @@ class VideoBagOfTricks: self.optfullsizewindow() self.showform() fl.set_event_call_back(self.do_event) - return self def close(self): self.close_video() @@ -610,7 +609,7 @@ class VideoBagOfTricks: if not self.vcr: try: print 'Connecting to VCR ...' - self.vcr = VCR.VCR().init() + self.vcr = VCR.VCR() print 'Waiting for VCR to come online ...' self.vcr.initvcr() print 'Preparing VCR ...' @@ -804,7 +803,7 @@ class VideoBagOfTricks: x, y = x/2, y/2 elif self.rgb24_size == 3: x, y = x/4, y/4 - vout = VFile.VoutFile().init(self.vfile) + vout = VFile.VoutFile(self.vfile) vout.setformat(self.vformat) if self.vformat == 'compress': cheader = self.init_compressor(x, y) |