This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2015年09月06日 19:16 by terry.reedy, last changed 2022年04月11日 14:58 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| MouseWheelTrace.tcl | serhiy.storchaka, 2015年09月07日 06:04 | |||
| MouseWheelTrace.py | serhiy.storchaka, 2015年09月07日 06:05 | |||
| Messages (7) | |||
|---|---|---|---|
| msg250013 - (view) | Author: Terry J. Reedy (terry.reedy) * (Python committer) | Date: 2015年09月06日 19:16 | |
https://stackoverflow.com/questions/32414942/python-scroll-speed At least on Win7, tk.Texts scroll, by default, at an anemic 2-3 lines per wheel click, ignoring the system wheel setting. What happens on other systems? I consider this a probable tk bug, at least on Widows, but we can override the default (on Windows) with def mousescroll(event): <scroll n lines> return 'break' text.bind('<MouseWheel>', mousescroll) turtledemo.__main__ has wheel code (for font resizing) for Windows, Linux, and Mac. Unless we can access system settings, we might add a config option. |
|||
| msg250026 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) | Date: 2015年09月06日 22:11 | |
On X Window the scroll step in text widget is constant (50 pixels). On Windows and Mac OS it should depend on mouse settings.
Run with, execute
bind . <MouseWheel> {puts %D}
and try to roll mouse wheel on Tk window with different speed and settings.
|
|||
| msg250073 - (view) | Author: Terry J. Reedy (terry.reedy) * (Python committer) | Date: 2015年09月07日 05:40 | |
The SO OP reported Idle Shell and Editor behavior. I retested minimal tk.Text(root).pack(), eliminating Idle as a factor, before and after changing system lines setting from 3 to 9, and got the constant same behavior. The now too small 50 pixels seems about what it is doing. Serhiy, I do not understand your 'Run ...' sentence. |
|||
| msg250078 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) | Date: 2015年09月07日 06:04 | |
You can measure your mouse speed with following pure Tcl/Tk script. |
|||
| msg250079 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) | Date: 2015年09月07日 06:05 | |
Or with following Python script. |
|||
| msg296411 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) | Date: 2017年06月20日 10:53 | |
> Serhiy, I do not understand your 'Run ...' sentence. Sorry, there was a typo in my sentence. I meant "Run the program 'wish' and enter the following command". |
|||
| msg317820 - (view) | Author: Terry J. Reedy (terry.reedy) * (Python committer) | Date: 2018年05月28日 00:52 | |
This is 'out of date' in the sense that I have decided that the root problem is scrolling by pixels instead of lines. Once we do the latter, for #33664, we can just scroll by, say, 5 lines instead of 3, which I think is sufficient. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:58:20 | admin | set | github: 69203 |
| 2018年05月28日 00:52:49 | terry.reedy | set | status: open -> closed superseder: IDLE: scroll text by lines, not pixels. messages: + msg317820 resolution: out of date stage: test needed -> resolved |
| 2017年06月20日 10:53:27 | serhiy.storchaka | set | messages: + msg296411 |
| 2017年06月19日 20:53:36 | terry.reedy | set | assignee: terry.reedy components: + IDLE versions: + Python 3.7, - Python 2.7, Python 3.4, Python 3.5 |
| 2015年09月07日 06:05:25 | serhiy.storchaka | set | files:
+ MouseWheelTrace.py messages: + msg250079 |
| 2015年09月07日 06:04:48 | serhiy.storchaka | set | files:
+ MouseWheelTrace.tcl messages: + msg250078 |
| 2015年09月07日 05:40:46 | terry.reedy | set | nosy:
+ markroseman messages: + msg250073 |
| 2015年09月06日 22:11:32 | serhiy.storchaka | set | nosy:
+ serhiy.storchaka messages: + msg250026 |
| 2015年09月06日 19:16:05 | terry.reedy | create | |