From 20435d98b152110b6a3f0f0f20457f99e3fc9920 Mon Sep 17 00:00:00 2001 From: PySimpleGUI Date: Fri, 3 Apr 2020 15:23:06 -0400 Subject: [PATCH] back out part of scrolled column fix as it was scrolling everything in the window when wheel used --- PySimpleGUI.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/PySimpleGUI.py b/PySimpleGUI.py index ddaa5480..187d4039 100644 --- a/PySimpleGUI.py +++ b/PySimpleGUI.py @@ -1,6 +1,6 @@ #!/usr/bin/python3 -version = __version__ = "4.18.0.12 Unreleased - Print and MLine.Print fixed sep char handling, popup_get_date, icon parm popup_animated, popup button size (6,1), NEW CALENDAR chooser integrated, Graph.draw_lines, color chooser set parent window, scrollable column scrollwheel fixed, autoscroll parm for Multiline.print" +version = __version__ = "4.18.0.13 Unreleased - Print and MLine.Print fixed sep char handling, popup_get_date, icon parm popup_animated, popup button size (6,1), NEW CALENDAR chooser integrated, Graph.draw_lines, color chooser set parent window, scrollable column scrollwheel fixed, autoscroll parm for Multiline.print" port = 'PySimpleGUI' @@ -5137,13 +5137,13 @@ class TkScrollableFrame(tk.Frame): # Canvas can be: master, canvas, TKFrame if sys.platform.startswith('linux'): - self.canvas.bind_all('<4>', self.yscroll, add='+') - self.canvas.bind_all('<5>', self.yscroll, add='+') + self.canvas.bind('<4>', self.yscroll, add='+') + self.canvas.bind('<5>', self.yscroll, add='+') else: # Windows and MacOS - self.canvas.bind_all("", self.yscroll, add='+') - self.canvas.bind_all("", self.xscroll, add='+') - self.bind('', self.set_scrollregion) + self.canvas.bind("", self.yscroll, add='+') + self.canvas.bind("", self.xscroll, add='+') + self.canvas.bind('', self.set_scrollregion) def resize_frame(self, e): self.canvas.itemconfig(self.frame_id, height=e.height, width=e.width)