diff options
author | Ned Deily <nad@acm.org> | 2011-07-26 18:17:33 -0700 |
---|---|---|
committer | Ned Deily <nad@acm.org> | 2011-07-26 18:17:33 -0700 |
commit | f25e3d527820489cf83c80d7e497da6ee0a75da3 (patch) | |
tree | 9b49dcea856634dd5c994766aa267bd2c2596381 | |
parent | 1299a8f3b25a543c79f79e6edaebb033018029ca (diff) | |
download | cpython-f25e3d527820489cf83c80d7e497da6ee0a75da3.tar.gz cpython-f25e3d527820489cf83c80d7e497da6ee0a75da3.zip |
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.
-rw-r--r-- | Lib/idlelib/IOBinding.py | 2 | ||||
-rw-r--r-- | Misc/NEWS | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/Lib/idlelib/IOBinding.py b/Lib/idlelib/IOBinding.py index 3f5d556bb67..d20c708ef9c 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 2d6d3158dcc..ed8511dea92 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. |