[Python-checkins] commit of r41861 - in python/branches/release24-maint: Misc/NEWS Tools/pynche/StripViewer.py

barry.warsaw python-checkins at python.org
Sun Jan 1 22:34:06 CET 2006


Author: barry.warsaw
Date: Sun Jan  1 22:33:50 2006
New Revision: 41861

Modified:
   python/branches/release24-maint/Misc/NEWS
   python/branches/release24-maint/Tools/pynche/StripViewer.py
Log:
Patch by Ori Avtalion to fix a minor display glitch in the RightArrow.

I will port forward to 2.5.


Modified: python/branches/release24-maint/Misc/NEWS
==============================================================================
--- python/branches/release24-maint/Misc/NEWS	(original)
+++ python/branches/release24-maint/Misc/NEWS	Sun Jan  1 22:33:50 2006
@@ -80,6 +80,11 @@
 - 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?
 =================================

Modified: python/branches/release24-maint/Tools/pynche/StripViewer.py
==============================================================================
--- python/branches/release24-maint/Tools/pynche/StripViewer.py	(original)
+++ python/branches/release24-maint/Tools/pynche/StripViewer.py	Sun Jan  1 22:33:50 2006
@@ -151,9 +151,9 @@
         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
 
 
 


More information about the Python-checkins mailing list