summaryrefslogtreecommitdiffstats
path: root/Demo/sgi/video/cam.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1992-02-11 14:50:22 (GMT)
committerGuido van Rossum <guido@python.org>1992-02-11 14:50:22 (GMT)
commitf47d0485a08fe883672438ed9c24c57135a6934a (patch)
treed964f36e25784aa16453381db507a85681d2774b /Demo/sgi/video/cam.py
parentd61bbb33f7b19974f0a45c17ad7696eb4c310218 (diff)
downloadcpython-f47d0485a08fe883672438ed9c24c57135a6934a.zip
cpython-f47d0485a08fe883672438ed9c24c57135a6934a.tar.gz
cpython-f47d0485a08fe883672438ed9c24c57135a6934a.tar.bz2
new syntax
Diffstat (limited to 'Demo/sgi/video/cam.py')
-rwxr-xr-xDemo/sgi/video/cam.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Demo/sgi/video/cam.py b/Demo/sgi/video/cam.py
index f30e1e0..fa8966f 100755
--- a/Demo/sgi/video/cam.py
+++ b/Demo/sgi/video/cam.py
@@ -23,7 +23,7 @@ if sys.argv[1:]:
if sys.argv[2:]:
HOST = sys.argv[2]
- if HOST = 'all':
+ if HOST == 'all':
HOST = '<broadcast>'
MAX = 1400
@@ -47,7 +47,7 @@ def main():
readsource(SRC_FRAMEGRABBER)
s = socket(AF_INET, SOCK_DGRAM)
- if HOST = '<broadcast>':
+ if HOST == '<broadcast>':
s.allowbroadcast(1)
addr = HOST, PORT
@@ -72,7 +72,7 @@ def main():
while 1:
while qtest():
dev, val = qread()
- if dev = REDRAW:
+ if dev == REDRAW:
reshapeviewport()
w, h = getsize()
ortho2(0, w, 0, h)
@@ -93,7 +93,7 @@ def main():
fps = 0
- elif dev = ESCKEY:
+ elif dev == ESCKEY:
winclose(wid)
return