Cosmetic changes to Vedit and -Form.

This commit is contained in:
Guido van Rossum 1992-08-25 13:53:10 +00:00
parent 354166fa05
commit a43111118f
2 changed files with 49 additions and 47 deletions

View file

@ -3,13 +3,12 @@
# Edit CMIF movies interactively -- copy one or more files to an output file
# Possibilities:
# XXX To do:
#
# - convert between formats (grey, rgb, rgb8, ...)
# - change size
# - cut out a given area of the image
# - change time base (a la Vtime)
# - skip stretches of frames
import sys
@ -23,7 +22,7 @@ import string
def main():
qsize = 20
qsize = 40
opts, args = getopt.getopt(sys.argv[1:], 'q:')
for o, a in opts:
if o == '-q':
@ -111,12 +110,15 @@ class Editor:
def cb_copy(self, args):
if not self.iocheck(): return
data = self.vin.get()
if data:
if self.vout.getinfo() <> self.vin.getinfo():
print 'Copying info...'
self.vout.setinfo(self.vin.getinfo())
self.vout.put(data)
self.oshow()
if not data:
self.err('End of input file')
self.ishow()
return
if self.vout.getinfo() <> self.vin.getinfo():
print 'Copying info...'
self.vout.setinfo(self.vin.getinfo())
self.vout.put(data)
self.oshow()
self.ishow()
def cb_uncopy(self, args):