Shift + Mousewheel will scroll a column horizontally

This commit is contained in:
MikeTheWatchGuy 2019-09-05 10:47:54 -04:00
parent 221d376f10
commit 4508683999
1 changed files with 1 additions and 0 deletions

View File

@ -3839,6 +3839,7 @@ class TkScrollableFrame(tk.Frame):
self.bind('<Configure>', self.set_scrollregion) self.bind('<Configure>', self.set_scrollregion)
self.TKFrame.bind_all("<MouseWheel>", self.yscroll) # THIS IS IT! The line of code that enables the column to be scrolled with the mouse! self.TKFrame.bind_all("<MouseWheel>", self.yscroll) # THIS IS IT! The line of code that enables the column to be scrolled with the mouse!
self.TKFrame.bind_all("<Shift-MouseWheel>", self.xscroll) # THIS IS IT! The line of code that enables the column to be scrolled with the mouse!