From d1088089ad0ffe43ac5e7f18c412fbfa42f1681d Mon Sep 17 00:00:00 2001 From: Paul McCarthy Date: Mon, 16 May 2022 15:43:19 +0100 Subject: [PATCH] BF: Proportion parameter must be an integer --- wx/lib/agw/aui/framemanager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wx/lib/agw/aui/framemanager.py b/wx/lib/agw/aui/framemanager.py index ec3c4194..922826d8 100644 --- a/wx/lib/agw/aui/framemanager.py +++ b/wx/lib/agw/aui/framemanager.py @@ -5580,7 +5580,7 @@ class AuiManager(wx.EvtHandler): # finally, add the pane sizer to the dock sizer if pane.HasBorder(): # allowing space for the pane's border - sizer_item = cont.Add(horz_pane_sizer, pane_proportion, + sizer_item = cont.Add(horz_pane_sizer, int(round(pane_proportion)), wx.EXPAND | wx.ALL, pane_border_size) part = AuiDockUIPart() part.type = AuiDockUIPart.typePaneBorder @@ -5592,7 +5592,7 @@ class AuiManager(wx.EvtHandler): part.sizer_item = sizer_item uiparts.append(part) else: - sizer_item = cont.Add(horz_pane_sizer, pane_proportion, wx.EXPAND) + sizer_item = cont.Add(horz_pane_sizer, int(round(pane_proportion)), wx.EXPAND) return uiparts