chiark / gitweb /
Fix for problems with new layout
authorsmorloc <smorloc@gmail.com>
Thu, 24 Jan 2013 06:34:35 +0000 (01:34 -0500)
committersmorloc <smorloc@gmail.com>
Thu, 24 Jan 2013 06:34:47 +0000 (01:34 -0500)
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
Cura/gui/mainWindow.py

index f1db35f9e74acc2ce382e6716f0f153553fec900..38493b4144117efd1d0edb79a8fd2631cc73389c 100644 (file)
@@ -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
 
index b0026d4d33d0e2441128243c5491673a4b674029..9c92c5f905298b3b0e8721fce23eeecb444e3b8d 100644 (file)
@@ -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)