[Python-checkins] cpython (2.7): Issue #12590: IDLE editor window now always displays the first line
ned.deily
python-checkins at python.org
Wed Jul 27 03:19:52 CEST 2011
http://hg.python.org/cpython/rev/73ae3729b8fe
changeset: 71518:73ae3729b8fe
branch: 2.7
parent: 71507:ca236138f0ce
user: Ned Deily <nad at acm.org>
date: Tue Jul 26 18:16:08 2011 -0700
summary:
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.
files:
Lib/idlelib/IOBinding.py | 2 +-
Misc/NEWS | 3 +++
2 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/Lib/idlelib/IOBinding.py b/Lib/idlelib/IOBinding.py
--- a/Lib/idlelib/IOBinding.py
+++ b/Lib/idlelib/IOBinding.py
@@ -266,7 +266,7 @@
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
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -277,6 +277,9 @@
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.
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list