From 8413f98f4cda607db3c4827f792e50adf58fe772 Mon Sep 17 00:00:00 2001 From: Looki2000 Date: Thu, 7 Mar 2024 18:45:53 +0100 Subject: [PATCH] fixeded error caused by int converting to float --- .gitignore | 3 ++- canvas.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index b1f2b9b..a087069 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ __pycache__/ exports/* last_path_cache.txt *.fontproj -test export/ \ No newline at end of file +test export/ +.vscode/ \ No newline at end of file diff --git a/canvas.py b/canvas.py index 76bc4ea..3a622ed 100644 --- a/canvas.py +++ b/canvas.py @@ -26,7 +26,7 @@ class EditorCanvas(tkinter.Canvas): self.bind("",self.handle_erase) self.bind("",self.handle_erase) if platform.system()=="Windows" or platform.system()=="Darwin": - self.bind("",lambda event: self.handle_zoom(event.delta/120)) + self.bind("",lambda event: self.handle_zoom(event.delta//120)) else: # This will probably work only on X11 self.bind("",lambda _: self.handle_zoom(1))