From b6050f791c40b2b4d632cb0b350ab7a1a3427ada Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Sun, 1 Jan 2006 21:33:50 +0000 Subject: [PATCH] Patch by Ori Avtalion to fix a minor display glitch in the RightArrow. I will port forward to 2.5. --- Misc/NEWS | 5 +++++ Tools/pynche/StripViewer.py | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Misc/NEWS b/Misc/NEWS index 3c5f21fed49e..60102da878df 100644 --- 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? ================================= diff --git a/Tools/pynche/StripViewer.py b/Tools/pynche/StripViewer.py index 8d17d5527efb..01bcbf6d0507 100644 --- a/Tools/pynche/StripViewer.py +++ b/Tools/pynche/StripViewer.py @@ -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 -- 2.47.3