From bf66ac9bb58e9443202fcd9ea1c2fa8ab88418bc Mon Sep 17 00:00:00 2001 From: smorloc Date: Thu, 24 Jan 2013 01:34:35 -0500 Subject: [PATCH] Fix for problems with new layout Problems identified by 'Intrinsically-Sublime': double clicking on the sash switches to single pane view; shrinking the window vertically cuts of list of printing settings --- Cura/gui/configBase.py | 5 ++++- Cura/gui/mainWindow.py | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Cura/gui/configBase.py b/Cura/gui/configBase.py index f1db35f9..38493b41 100644 --- a/Cura/gui/configBase.py +++ b/Cura/gui/configBase.py @@ -48,7 +48,7 @@ class configPanelBase(wx.Panel): return leftConfigPanel def CreateSimpleConfigPanel(self, parent): - configPanel = wx.Panel(parent); + configPanel = wx.lib.scrolledpanel.ScrolledPanel(parent) leftConfigPanel = wx.Panel(configPanel) sizer = wx.GridBagSizer(2, 2) @@ -59,6 +59,9 @@ class configPanelBase(wx.Panel): configPanel.SetSizer(sizer) sizer.Add(leftConfigPanel, 1, wx.EXPAND) + configPanel.SetAutoLayout(1) + configPanel.SetupScrolling() + leftConfigPanel.main = self return leftConfigPanel, configPanel diff --git a/Cura/gui/mainWindow.py b/Cura/gui/mainWindow.py index b0026d4d..9c92c5f9 100644 --- a/Cura/gui/mainWindow.py +++ b/Cura/gui/mainWindow.py @@ -159,6 +159,7 @@ class mainWindow(wx.Frame): self.splitter = wx.SplitterWindow(self, style = wx.SP_3D | wx.SP_LIVE_UPDATE) self.leftPane = wx.Panel(self.splitter, style=wx.BORDER_NONE) self.rightPane = wx.Panel(self.splitter, style=wx.BORDER_NONE) + self.splitter.Bind(wx.EVT_SPLITTER_DCLICK, lambda evt: evt.Veto()) ##Gui components## self.simpleSettingsPanel = simpleMode.simpleModePanel(self.leftPane) -- 2.30.2