TomSchimansky / CustomTkinter

A modern and customizable python UI-library based on Tkinter
MIT License
10.8k stars 1.03k forks source link

Add events for the scroll wheel in Linux. #2365

Open SaVe-27 opened 2 months ago

SaVe-27 commented 2 months ago

My project uses several widgets, however I notice that the scroll wheel does not work on Linux.

In these two files, I add the events to buttons 4 and 5 (along with MouseWheel for Windows and MacOS) and assign a value for each interaction with button 4 (or 5).

Warning

I warn everyone about adding more events with other buttons (1, 2 and 3): in this case, these events maybe affect the user experience with the scroll wheel on Linux, because they interact with the conditional in self._parent_canvas.(x|y )view.

Thank you.