]> granicus.if.org Git - python/commitdiff
Correct off-by-two-pixels error.
authorGuido van Rossum <guido@python.org>
Fri, 22 Aug 1997 20:56:07 +0000 (20:56 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 22 Aug 1997 20:56:07 +0000 (20:56 +0000)
Demo/tkinter/guido/hanoi.py

index 2cc41343207107f7eccdab1c82e380c5d6f0b30f..9e566c4a308f9c33b8be5487ce8c222c5dbff01b 100755 (executable)
@@ -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)