Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 538561e

Browse files
committed
Ported from 2.4 branch:
Patch by Ori Avtalion to fix a minor display glitch in the RightArrow.
1 parent 0f19423 commit 538561e

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

Misc/NEWS

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -593,8 +593,9 @@ Library
593593
once when a size argument is given. This prevents a buffer overflow in the
594594
tokenizer with very long source lines.
595595

596-
- Bug #1083110: ``zlib.decompress.flush()`` would segfault if called immediately
597-
after creating the object, without any intervening ``.decompress()`` calls.
596+
- Bug #1083110: ``zlib.decompress.flush()`` would segfault if called
597+
immediately after creating the object, without any intervening
598+
``.decompress()`` calls.
598599

599600
- The reconvert.quote function can now emit triple-quoted strings. The
600601
reconvert module now has some simple documentation.
@@ -739,6 +740,8 @@ Tools/Demos
739740

740741
- Patch #1177597: Correct Complex.__init__.
741742

743+
- Fixed a display glitch in Pynche, which could cause the right arrow to
744+
wiggle over by a pixel.
742745

743746
What's New in Python 2.4 final?
744747
===============================

Tools/pynche/StripViewer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,9 @@ def _create(self, x):
151151
return arrow, text
152152

153153
def _x(self):
154-
coords = self._canvas.bbox(self._TAG)
154+
coords = self._canvas.coords(self._TAG)
155155
assert coords
156-
return coords[2] - 6 # BAW: kludge
156+
return coords[0] + self._ARROWWIDTH
157157

158158

159159

0 commit comments

Comments
 (0)