Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 21c5c8f

Browse files
committed
Correct off-by-two-pixels error.
1 parent d14c068 commit 21c5c8f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Demo/tkinter/guido/hanoi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def report(self, i, a, b):
111111
self.tk.update()
112112

113113
# Move it down on top of the previous piece
114-
pieceheight = y2-y1-2
114+
pieceheight = y2-y1
115115
newbottom = by2 - pieceheight*len(self.pegstate[b]) - 2
116116
while 1:
117117
x1, y1, x2, y2 = c.bbox(p)

0 commit comments

Comments
 (0)