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.) |
Only Linux, maybe ask a Mac expert to test it on a Mac. |
|
@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 |
|
I pushed an alternative, #156974, with the same goals. The import-time
Two smaller things:
Nits: In #156974, |
|
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.