From: Youness Alaoui Date: Wed, 3 Jun 2015 20:35:10 +0000 (-0400) Subject: Add a nice border around panels in quickprint settings X-Git-Tag: lulzbot-15.02.1-1.02~8 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=f6ac2fd414bc81428e8084f6ef15375950718c29;p=cura.git Add a nice border around panels in quickprint settings This makes it more pleasing and less annoying to the eyes with the padding around the widgets --- diff --git a/Cura/gui/simpleMode.py b/Cura/gui/simpleMode.py index d1efb6a1..a5b4a98e 100644 --- a/Cura/gui/simpleMode.py +++ b/Cura/gui/simpleMode.py @@ -71,7 +71,7 @@ class simpleModePanel(wx.Panel): for button in self._print_profile_options: boxsizer.Add(button) printTypePanel.SetSizer(wx.BoxSizer(wx.VERTICAL)) - printTypePanel.GetSizer().Add(boxsizer, flag=wx.EXPAND) + printTypePanel.GetSizer().Add(boxsizer, border=10, flag=wx.EXPAND|wx.RIGHT|wx.LEFT|wx.TOP) sizer.Add(printTypePanel, (0,0), flag=wx.EXPAND) sb = wx.StaticBox(printMaterialPanel, label=_("Material:")) @@ -79,14 +79,14 @@ class simpleModePanel(wx.Panel): for button in self._print_material_options: boxsizer.Add(button) printMaterialPanel.SetSizer(wx.BoxSizer(wx.VERTICAL)) - printMaterialPanel.GetSizer().Add(boxsizer, flag=wx.EXPAND) + printMaterialPanel.GetSizer().Add(boxsizer, border=10, flag=wx.EXPAND|wx.RIGHT|wx.LEFT|wx.TOP) sizer.Add(printMaterialPanel, (1,0), flag=wx.EXPAND) sb = wx.StaticBox(self, label=_("Other:")) boxsizer = wx.StaticBoxSizer(sb, wx.VERTICAL) for button in self._print_other_options: boxsizer.Add(button) - sizer.Add(boxsizer, (2,0), flag=wx.EXPAND) + sizer.Add(boxsizer, (2,0), border=10, flag=wx.EXPAND|wx.RIGHT|wx.LEFT|wx.TOP) for button in self._print_profile_options: button.Bind(wx.EVT_RADIOBUTTON, self._update)