]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Patch by Ori Avtalion to fix a minor display glitch in the RightArrow.
authorBarry Warsaw <barry@python.org>
Sun, 1 Jan 2006 21:33:50 +0000 (21:33 +0000)
committerBarry Warsaw <barry@python.org>
Sun, 1 Jan 2006 21:33:50 +0000 (21:33 +0000)
I will port forward to 2.5.

Misc/NEWS
Tools/pynche/StripViewer.py

index 3c5f21fed49e461bc4e07eb76553b57dd303cd36..60102da878df251eca8af327eb14e97f538887b5 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -80,6 +80,11 @@ Library
 - Bug #1296004: httplib.py: Limit maximal amount of data read from the
   socket to avoid a MemoryError on Windows.
 
+Tools/Demos
+-----------
+
+- Fixed a display glitch in Pynche, which could cause the right arrow to
+  wiggle over by a pixel.
 
 What's New in Python 2.4.2 final?
 =================================
index 8d17d5527efbcb2550e2d3e6c6a3d0964b861ceb..01bcbf6d0507dd5b2d3b53d99e6d3376cd3a1b41 100644 (file)
@@ -151,9 +151,9 @@ class RightArrow(LeftArrow):
         return arrow, text
 
     def _x(self):
-        coords = self._canvas.bbox(self._TAG)
+        coords = self._canvas.coords(self._TAG)
         assert coords
-        return coords[2] - 6                      # BAW: kludge
+        return coords[0] + self._ARROWWIDTH
 
 
 \f