From: Ned Deily Date: Wed, 27 Jul 2011 01:17:33 +0000 (-0700) Subject: Issue #12590: IDLE editor window now always displays the first line X-Git-Tag: v3.2.2rc1~65 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f25e3d527820489cf83c80d7e497da6ee0a75da3;p=python Issue #12590: IDLE editor window now always displays the first line when opening a long file. With Tk 8.5, the first line was hidden. --- diff --git a/Lib/idlelib/IOBinding.py b/Lib/idlelib/IOBinding.py index 3f5d556bb6..d20c708ef9 100644 --- a/Lib/idlelib/IOBinding.py +++ b/Lib/idlelib/IOBinding.py @@ -232,7 +232,7 @@ class IOBinding: # before being able to execute the code self.set_saved(False) self.text.mark_set("insert", "1.0") - self.text.see("insert") + self.text.yview("insert") self.updaterecentfileslist(filename) return True diff --git a/Misc/NEWS b/Misc/NEWS index 2d6d3158dc..ed8511dea9 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -37,6 +37,9 @@ Core and Builtins Library ------- +- Issue #12590: IDLE editor window now always displays the first line + when opening a long file. With Tk 8.5, the first line was hidden. + - Issue #12576: Fix urlopen behavior on sites which do not send (or obfuscates) Connection:close header.