From 8d740c67829a1a4f26286d346ee6a6ca1a454776 Mon Sep 17 00:00:00 2001 From: Tomas Zigo <50632337+tmszi@users.noreply.github.com> Date: Tue, 30 May 2023 08:24:38 +0200 Subject: [PATCH] wxGUI/vselect: fix BoxSizer widget Add method proportion param arg type (#2984) BoxSizer widget Add method proportion param arg type must be integer type. Fix is for Python 3.10 and wxPython 4.2.0 version. --- gui/wxpython/gui_core/vselect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/wxpython/gui_core/vselect.py b/gui/wxpython/gui_core/vselect.py index 178230b07d9..7bbee2f8185 100644 --- a/gui/wxpython/gui_core/vselect.py +++ b/gui/wxpython/gui_core/vselect.py @@ -135,7 +135,7 @@ def CreateDialog(self, createButton=True): createMap = Button( self._dialog, wx.ID_ANY, _("Create a new map")) createMap.Bind(wx.EVT_BUTTON, self.OnExportMap) - self._dialog.AddWidget(createMap, proportion=0.1) + self._dialog.AddWidget(createMap, proportion=0) self.slist = VectorSelectList(self._dialog) self.slist.Bind(wx.EVT_LIST_KEY_DOWN, self.OnDelete) self.slist.Bind(wx.EVT_LIST_ITEM_RIGHT_CLICK, self.OnDeleteRow)