]> granicus.if.org Git - python/commitdiff
Ported from 2.4 branch:
authorBarry Warsaw <barry@python.org>
Sun, 1 Jan 2006 21:48:54 +0000 (21:48 +0000)
committerBarry Warsaw <barry@python.org>
Sun, 1 Jan 2006 21:48:54 +0000 (21:48 +0000)
Patch by Ori Avtalion to fix a minor display glitch in the RightArrow.

Misc/NEWS
Tools/pynche/StripViewer.py

index fa4a27744c110639075da6ea7213060c5491073b..2a24e6dae919bdd0751fcfee746ae3c43ff85ef6 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -593,8 +593,9 @@ Library
   once when a size argument is given. This prevents a buffer overflow in the
   tokenizer with very long source lines.
 
-- Bug #1083110: ``zlib.decompress.flush()`` would segfault if called immediately
-  after creating the object, without any intervening ``.decompress()`` calls.
+- Bug #1083110: ``zlib.decompress.flush()`` would segfault if called
+  immediately after creating the object, without any intervening
+  ``.decompress()`` calls.
 
 - The reconvert.quote function can now emit triple-quoted strings.  The
   reconvert module now has some simple documentation.
@@ -739,6 +740,8 @@ Tools/Demos
 
 - Patch #1177597: Correct Complex.__init__.
 
+- 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 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