Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
e0be2b36
Commit
e0be2b36
authored
Sep 01, 1992
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a clear() method to VFile class, to be called when the window
receives a REDRAW event
parent
61700bb9
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
7 deletions
+19
-7
Demo/sgi/video/VFile.py
Demo/sgi/video/VFile.py
+4
-2
Demo/sgi/video/Vedit.py
Demo/sgi/video/Vedit.py
+5
-1
Demo/sgi/video/Vinfo.py
Demo/sgi/video/Vinfo.py
+4
-1
Demo/sgi/video/Vplay.py
Demo/sgi/video/Vplay.py
+2
-2
Demo/sgi/video/Vrec.py
Demo/sgi/video/Vrec.py
+4
-1
No files found.
Demo/sgi/video/VFile.py
View file @
e0be2b36
...
...
@@ -122,16 +122,18 @@ class VFile:
if
not
self
.
quiet
:
sys
.
stderr
.
write
(
'Initializing color map...'
)
self
.
initcmap
()
self
.
clear
()
if
not
self
.
quiet
:
sys
.
stderr
.
write
(
' Done.
\
n
'
)
def
clear
(
self
):
if
self
.
offset
==
0
:
gl
.
color
(
0x800
)
gl
.
clear
()
self
.
mask
=
0x7ff
else
:
self
.
mask
=
0xfff
gl
.
clear
()
gl
.
clear
()
def
initcmap
(
self
):
maxbits
=
gl
.
getgdesc
(
GL
.
GD_BITS_NORM_SNG_CMODE
)
...
...
Demo/sgi/video/Vedit.py
View file @
e0be2b36
...
...
@@ -246,4 +246,8 @@ class Editor:
getattr
(
self
,
io
+
'_info2'
).
label
=
`pos`
getattr
(
self
,
io
+
'_info3'
).
label
=
`right`
main
()
try
:
main
()
except
KeyboardInterrupt
:
print
'[Interrupt]'
Demo/sgi/video/Vinfo.py
View file @
e0be2b36
...
...
@@ -120,4 +120,7 @@ def process(filename):
# Don't forget to call the main program
main
()
try
:
main
()
except
KeyboardInterrupt
:
print
'[Interrupt]'
Demo/sgi/video/Vplay.py
View file @
e0be2b36
...
...
@@ -73,7 +73,7 @@ def main():
# Interpret options
try
:
for
opt
,
arg
in
opts
:
if
opt
==
'-M'
:
magnify
=
string
.
atoi
(
arg
)
if
opt
==
'-M'
:
magnify
=
float
(
eval
(
arg
)
)
if
opt
==
'-d'
:
debug
=
debug
+
1
if
opt
==
'-l'
:
looping
=
1
if
opt
==
'-m'
:
mindelta
=
string
.
atoi
(
arg
)
...
...
@@ -147,7 +147,7 @@ def process(filename):
gl
.
foreground
()
width
,
height
=
vin
.
width
*
magnify
,
vin
.
height
*
magnify
width
,
height
=
int
(
vin
.
width
*
magnify
),
int
(
vin
.
height
*
magnify
)
if
xoff
<>
None
and
yoff
<>
None
:
scrheight
=
gl
.
getgdesc
(
GL
.
GD_YPMAX
)
gl
.
prefposition
(
xoff
,
xoff
+
width
-
1
,
\
...
...
Demo/sgi/video/Vrec.py
View file @
e0be2b36
...
...
@@ -260,4 +260,7 @@ def audiorecord(afile, aport, buffer):
# Don't forget to call the main program
main
()
try
:
main
()
except
KeyboardInterrupt
:
print
'[Interrupt]'
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment