summaryrefslogtreecommitdiffstats
path: root/Demo
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-08-22 20:56:07 (GMT)
committerGuido van Rossum <guido@python.org>1997-08-22 20:56:07 (GMT)
commit21c5c8fa5b205e5106360811964a67141852d428 (patch)
tree8d42a934aa026a4db54538b34960c2230a334f4f /Demo
parentd14c06819ed92f4b819529f90b3377cf2caad3f1 (diff)
downloadcpython-21c5c8fa5b205e5106360811964a67141852d428.zip
cpython-21c5c8fa5b205e5106360811964a67141852d428.tar.gz
cpython-21c5c8fa5b205e5106360811964a67141852d428.tar.bz2
Correct off-by-two-pixels error.
Diffstat (limited to 'Demo')
-rwxr-xr-xDemo/tkinter/guido/hanoi.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Demo/tkinter/guido/hanoi.py b/Demo/tkinter/guido/hanoi.py
index 2cc4134..9e566c4 100755
--- a/Demo/tkinter/guido/hanoi.py
+++ b/Demo/tkinter/guido/hanoi.py
@@ -111,7 +111,7 @@ class Tkhanoi:
self.tk.update()
# Move it down on top of the previous piece
- pieceheight = y2-y1-2
+ pieceheight = y2-y1
newbottom = by2 - pieceheight*len(self.pegstate[b]) - 2
while 1:
x1, y1, x2, y2 = c.bbox(p)