summaryrefslogtreecommitdiffstats
path: root/Lib/stdwin/formatter.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1992-01-01 19:35:13 (GMT)
committerGuido van Rossum <guido@python.org>1992-01-01 19:35:13 (GMT)
commitbdfcfccbe591e15221f35add01132174c9b4e669 (patch)
tree7e5f0d52b8c44e623b12e8f4b5cd645c361e5aeb /Lib/stdwin/formatter.py
parent4d8e859e8f0a209a7e999ce9cc0988156c795949 (diff)
downloadcpython-bdfcfccbe591e15221f35add01132174c9b4e669.zip
cpython-bdfcfccbe591e15221f35add01132174c9b4e669.tar.gz
cpython-bdfcfccbe591e15221f35add01132174c9b4e669.tar.bz2
New == syntax
Diffstat (limited to 'Lib/stdwin/formatter.py')
-rwxr-xr-xLib/stdwin/formatter.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/stdwin/formatter.py b/Lib/stdwin/formatter.py
index aea7deb..b2d4add 100755
--- a/Lib/stdwin/formatter.py
+++ b/Lib/stdwin/formatter.py
@@ -175,20 +175,20 @@ def test():
winsize = w.getwinsize()
while 1:
type, window, detail = stdwinq.getevent()
- if type = WE_CLOSE:
+ if type == WE_CLOSE:
break
- elif type = WE_SIZE:
+ elif type == WE_SIZE:
newsize = w.getwinsize()
if newsize <> winsize:
w.change((0,0), winsize)
winsize = newsize
w.change((0,0), winsize)
- elif type = WE_MOUSE_DOWN:
+ elif type == WE_MOUSE_DOWN:
stage = (stage + 1) % len(stages)
justify, center, title = stages[stage]
w.settitle(title)
w.change((0, 0), (1000, 1000))
- elif type = WE_DRAW:
+ elif type == WE_DRAW:
width, height = winsize
f = formatter().init(w.begindrawing(), 0, 0, width)
f.center = center
@@ -198,7 +198,7 @@ def test():
for font in font1, font2, font1:
f.setfont(font)
for word in words:
- space = 1 + (word[-1:] = '.')
+ space = 1 + (word[-1:] == '.')
f.addword(word, space)
if center and space > 1:
f.flush()