From 11f7c42c8debe7fd08ac52dca2d84ba03d0564a0 Mon Sep 17 00:00:00 2001 From: komoto Date: Sun, 11 Sep 2022 12:58:15 +0900 Subject: [PATCH] Fix OpenEditor offset to integer --- wx/lib/mixins/listctrl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wx/lib/mixins/listctrl.py b/wx/lib/mixins/listctrl.py index a74295ea..1a5a5a38 100644 --- a/wx/lib/mixins/listctrl.py +++ b/wx/lib/mixins/listctrl.py @@ -588,7 +588,7 @@ class TextEditMixin: # scroll a bit more than what is minimum required # so we don't have to scroll every time the user presses TAB # which is very tireing to the eye - addoffset = self.GetSize()[0]/4 + addoffset = self.GetSize()[0]//4 # but be careful at the end of the list if addoffset + scrolloffset < self.GetSize()[0]: offset += addoffset