mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Cosmetic changes to Vedit and -Form.
This commit is contained in:
parent
354166fa05
commit
a43111118f
2 changed files with 49 additions and 47 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue