From 8abd25fe40356c2d908c3c501b5d53a000e53e0d Mon Sep 17 00:00:00 2001 From: blitzmann Date: Mon, 19 Feb 2018 23:32:44 -0500 Subject: [PATCH] Use a scolled window in preference pages --- gui/preferenceDialog.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gui/preferenceDialog.py b/gui/preferenceDialog.py index 916c4497a..37ca5ddaf 100644 --- a/gui/preferenceDialog.py +++ b/gui/preferenceDialog.py @@ -55,17 +55,17 @@ class PreferenceDialog(wx.Dialog): self.Centre(wx.BOTH) for prefView in PreferenceView.views: - page = wx.Panel(self.listbook) + page = wx.ScrolledWindow(self.listbook) + page.SetScrollbars(1, 1, 20, 20) bmp = prefView.getImage() if bmp: imgID = self.imageList.Add(bmp) else: imgID = -1 prefView.populatePanel(page) + self.listbook.AddPage(page, prefView.title, imageId=imgID) - # Set the height based on a condition. Can all the panels fit in the current height? - # If not, use the .GetBestVirtualSize() to ensure that all content is available. minHeight = 550 bestFit = self.GetBestVirtualSize() if minHeight > bestFit[1]: