Uh oh!
There was an error while loading. Please reload this page.
gh-154511: IDLE - Update mousewheel event handling - #154512
Conversation
Move x11_buttons boolean and wheel_event function to util.py. Move test to test_util.
Quick manual checks on linux and macOS would be nice: load a non-trivial file such as editor.py and scroll up and down. Scrolling in a sidebar should not be affected by this PR. Open a module browser and expand enough to scroll both over the items and in the blank space. @StanFromIreland I forget whether you have mac or only linux. EDIT: I have done the above on Windows and the unittest is system independent, as it patches the x11 indicator (which Serhiy wrote and tested on x11.) |
StanFromIreland
commented
Jul 23, 2026
Only Linux, maybe ask a Mac expert to test it on a Mac. |
Uh oh!
There was an error while loading. Please reload this page.
terryjreedy
commented
Jul 23, 2026
@ronaldoussoren@ned-deily Could one of you quickly test that scrolling still works on macOS in editor and module browser? |
Failures are mysteries to me. UBSan has repeated failures like this: with different idle_test.test_x for each failure Re-running some |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
serhiy-storchaka
commented
Sep 5, 2026
I pushed an alternative, #156974, with the same goals. The import-time
Two smaller things:
Nits: In #156974, |
terryjreedy
commented
Sep 6, 2026
Before me, run.py was written to avoid disturbing tk, so it calls tkinter.Tcl().update () inside of handle_tk_events, called within the main loop when there is no request. I believe this is there to advance user tkinter code without a Tk().mainloop(). In any case, creating a Tk upon util import is bad. Serhiy's alternative has other advantages, including passing CI. So closing this. |
Uh oh!
There was an error while loading. Please reload this page.