New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IDLE: add cursor noblink option #48880
Comments
IDLE's cursor blinks with Python 3.0 on Linux. But it shouldn't (and doesn't for prior versions) because in my Now I have to manually edit idlelib/EditorWindow.py to stop the cursor I am one of a minority of people who cannot work with blinking cursors. |
Although I stand by my criticism of IDLE not offering the option of However, that is no help to people using Windows for whom the only |
Would you please share that code with us. |
Py2.6: idlelib/EditorWindow.py change line 110 from: width=self.width, Py3.0 This will switch off cursor blink (and annoy people who want cursor |
Thank you very much. It was a kind of chinese torture. |
Yes, blinking cursors are torture for me too. Fortunately you can switch |
Maybe we can agree on the feature being added ? I don't see much use for I personally didn't have any issue with seeing the cursor blinking (I |
I agree that control of the blink _rate_ isn't needed. I would certainly |
Here is a patch. But I'm not feeling comfortable with the option "display": Cursor blink ( ) No blink ( ) Blink Those are radiobuttons. If I opted for a checkbutton then it would be |
I think a checkbox would be better: or [X] Cursor blink but if you use radio buttons you could have: Cursor blink (*) On ( ) Off |
I, too, would like to see this as an option in IDLE, as I also find blinking cursors distracting. I can confirm that tkinter.Text's "insertofftime" option works on Windows as well, so the proposed patch should work on Windows. |
The idea and design look good to me. I will test on Windows when I am able to do so in development builds (unless someone beats me ;-). |
Time to say ping here. This patch is still would be useful for Python. |
Attached is an updated version of the patch against the latest 2.7 code. |
SO request for same: https://stackoverflow.com/questions/41937748/stop-cursor-blinking-in-idle. |
I have created a pull request for this issue. |
Zackary's patch toggles blinking immediately in editor/shell/output windows, but does not affect the FontSample and numerous dialog entry lines. I changed the patch to store 'insertofftime' just once, as idleConf.blink_off_time. This is set the first time a shell or editor is created. This can be used in a future patch to set the option when other cursor widgets are created. (Trying to update all visible or hidden entry lines is too much work.) For dialogs created just once, this will be the next time IDLE is started. Having these blink for the remainder of a session, if used again, should be a minor nuisance compared to blinking in the shell and editors. |
My intent is that a followup patch should, for font sample and entry widgets, set insertofftime=0 on creation if not cursor_blink. A new idleConf.set_cursor_blink(widget), something like the new EditorWindow.update_cursor_blink could be used multiple places. |
New changeset 592527f by Zackery Spytz in branch 'master': |
New changeset 4cf7afc by Miss Islington (bot) in branch '3.9': |
New changeset 29df301 by Terry Jan Reedy in branch '3.8': |
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: