From 5f8109b3c3ba2b01ee22840e7c353593708d25aa Mon Sep 17 00:00:00 2001 From: Kaalleen <36401965+kaalleen@users.noreply.github.com> Date: Sun, 28 Mar 2021 10:55:31 +0200 Subject: set min size for params dialog (#1107) --- lib/extensions/params.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib/extensions/params.py') diff --git a/lib/extensions/params.py b/lib/extensions/params.py index 2501f157..1982a861 100644 --- a/lib/extensions/params.py +++ b/lib/extensions/params.py @@ -460,6 +460,13 @@ class SettingsFrame(wx.Frame): sizer_1.Add(sizer_3, 0, wx.ALIGN_RIGHT, 0) self.SetSizer(sizer_1) sizer_1.Fit(self) + + # prevent the param dialog to become smaller than 500*400 + # otherwise the scrollbar jumps to the side and produces a + # deprecation warning in wxpythons scrolledpanel.py line 225 - + # which is expecting an integer, but uses previously a division + self.SetSizeHints(500, 400) + self.Layout() # end wxGlade -- cgit v1.2.3