You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I suggest the following for linux users wanting to use their mouse wheel in CC.pyw config
Tested on raspberry pi raspbian only.
under
def MenuConfig_WheelScroll(self, event):
remove Windows statement
self.controlcanvas.yview_scroll(-1*(event.delta/120), "units")
add Linux and Windows statements
if event.num == 5: # linux scroll down
self.controlcanvas.yview_scroll(1, "units")
elif event.num == 4: # linux scroll up
self.controlcanvas.yview_scroll(-1, "units")
else: # windows scroll event
self.controlcanvas.yview_scroll(-1*(event.delta/120), "units")
under
self.controlcanvas = Canvas(self.controlselect)
self.controlcanvas.bind_all("<MouseWheel>", self.MenuConfig_WheelScroll)
add for use with Linux OS
self.controlcanvas.bind_all("<Button-4>", self.MenuConfig_WheelScroll)
self.controlcanvas.bind_all("<Button-5>", self.MenuConfig_WheelScroll)
under
def UnbindAll(self):
self.master.unbind_all("<MouseWheel>")
add
self.master.unbind_all("<Button-4>")
self.master.unbind_all("<Button-5>")
The text was updated successfully, but these errors were encountered:
I suggest the following for linux users wanting to use their mouse wheel in CC.pyw config
Tested on raspberry pi raspbian only.
The text was updated successfully, but these errors were encountered: