From d8b1723965ba05d579525c9f09a79d58c18b4a84 Mon Sep 17 00:00:00 2001 From: Ned Deily Date: Tue, 26 Jul 2011 18:16:08 -0700 Subject: 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. --- Lib/idlelib/IOBinding.py | 2 +- Misc/NEWS | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Lib/idlelib/IOBinding.py b/Lib/idlelib/IOBinding.py index a8c351f..c515432 100644 --- a/Lib/idlelib/IOBinding.py +++ b/Lib/idlelib/IOBinding.py @@ -266,7 +266,7 @@ class IOBinding: self.reset_undo() self.set_filename(filename) 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 6e7bc53..d2d0f89 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -277,6 +277,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 #12161: Cause StringIO.getvalue() to raise a ValueError when used on a closed StringIO instance. -- cgit v0.12