You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee='https://github.com/ned-deily'closed_at=<Date2011-07-27.01:26:46.069>created_at=<Date2011-07-20.03:12:21.160>labels= ['expert-IDLE', 'type-bug']
title='First line and cursor not visible when opening files'updated_at=<Date2011-07-27.03:06:07.702>user='https://bugs.python.org/sforman'
In IDLE if you open a file that is longer than the editor window the first line, with the cursor, is scrolled off the top of the window making it appear as though the file begins at the second line.
This can be fixed by adding 'text.see("insert")' to the end of the EditorWindow __init__() method, but see Bruce Sherwood's comment on http://bugs.python.org/issue10079#msg118618
The problem appears to be a difference in behavior between Tk 8.5 and earlier versions of Tk and not a platform difference. The fix is to use that 'yview' method of Text instead of 'see'. That gives the expected behavior with both Tk 8.5 and 8.4. Fix is applied to 2.7 (for 2.7.3), 3. 2 (for 3.2.2), and default (for 3.3). Only security issues are accepted for Python 2.6 but the patch should apply and work there as well.
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: