From 25b0e2139e8171f737fde6c09d42978601c98b98 Mon Sep 17 00:00:00 2001 From: mprosperi Date: Tue, 23 May 2023 21:31:14 +0200 Subject: [PATCH] fixes #2208 --- wx/lib/agw/aui/auibook.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/wx/lib/agw/aui/auibook.py b/wx/lib/agw/aui/auibook.py index f635beec..e06ea9ca 100644 --- a/wx/lib/agw/aui/auibook.py +++ b/wx/lib/agw/aui/auibook.py @@ -4610,8 +4610,8 @@ class AuiNotebook(wx.Panel): # because there are two panes, always split them # equally split_size = self.GetClientSize() - split_size.x /= 2 - split_size.y /= 2 + split_size.x //= 2 + split_size.y //= 2 # create a new tab frame new_tabs = TabFrame(self) @@ -4638,22 +4638,22 @@ class AuiNotebook(wx.Panel): if direction == wx.LEFT: pane_info.Left() - mouse_pt = wx.Point(0, cli_size.y/2) + mouse_pt = wx.Point(0, cli_size.y//2) elif direction == wx.RIGHT: pane_info.Right() - mouse_pt = wx.Point(cli_size.x, cli_size.y/2) + mouse_pt = wx.Point(cli_size.x, cli_size.y//2) elif direction == wx.TOP: pane_info.Top() - mouse_pt = wx.Point(cli_size.x/2, 0) + mouse_pt = wx.Point(cli_size.x//2, 0) elif direction == wx.BOTTOM: pane_info.Bottom() - mouse_pt = wx.Point(cli_size.x/2, cli_size.y) + mouse_pt = wx.Point(cli_size.x//2, cli_size.y) self._mgr.AddPane(new_tabs, pane_info, mouse_pt) self._mgr.Update()