repo.or.cz
/
python
/
dscho.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merged release21-maint changes.
[python/dscho.git]
/
Demo
/
sgi
/
video
/
Vstat.py
blob
a29b1ff04b8d6d2ae3798c4762c5a27fd727a132
1
#! /usr/bin/env python
2
3
# Print the value of all video parameters
4
5
import
sys
6
import
sv
,
SV
7
8
def
main
():
9
v
=
sv
.
OpenVideo
()
10
for
name
in
dir
(
SV
):
11
const
=
getattr
(
SV
,
name
)
12
if
type
(
const
)
is
type
(
0
):
13
sys
.
stdout
.
flush
()
14
params
= [
const
,
0
]
15
try
:
16
v
.
GetParam
(
params
)
17
except
sv
.
error
,
msg
:
18
## print name, msg
19
continue
20
print
name
,
params
21
22
main
()
23