Fix the bug where you can not select a material and a profile with MacOS 10.8
parent
09f404081e
commit
27db8a767f
|
@ -64,35 +64,41 @@ class simpleModeWindow(configBase.configWindowBase):
|
|||
self.preview3d = preview3d.previewPanel(self)
|
||||
|
||||
configPanel = wx.Panel(self)
|
||||
self.printTypeNormal = wx.RadioButton(configPanel, -1, 'Normal quality print', style=wx.RB_GROUP)
|
||||
self.printTypeLow = wx.RadioButton(configPanel, -1, 'Fast low quality print')
|
||||
self.printTypeHigh = wx.RadioButton(configPanel, -1, 'High quality print')
|
||||
self.printTypeJoris = wx.RadioButton(configPanel, -1, 'Thin walled cup or vase')
|
||||
printTypePanel = wx.Panel(configPanel)
|
||||
self.printTypeNormal = wx.RadioButton(printTypePanel, -1, 'Normal quality print', style=wx.RB_GROUP)
|
||||
self.printTypeLow = wx.RadioButton(printTypePanel, -1, 'Fast low quality print')
|
||||
self.printTypeHigh = wx.RadioButton(printTypePanel, -1, 'High quality print')
|
||||
self.printTypeJoris = wx.RadioButton(printTypePanel, -1, 'Thin walled cup or vase')
|
||||
|
||||
self.printMaterialPLA = wx.RadioButton(configPanel, -1, 'PLA', style=wx.RB_GROUP)
|
||||
self.printMaterialABS = wx.RadioButton(configPanel, -1, 'ABS')
|
||||
self.printMaterialDiameter = wx.TextCtrl(configPanel, -1, profile.getProfileSetting('filament_diameter'))
|
||||
printMaterialPanel = wx.Panel(configPanel)
|
||||
self.printMaterialPLA = wx.RadioButton(printMaterialPanel, -1, 'PLA', style=wx.RB_GROUP)
|
||||
self.printMaterialABS = wx.RadioButton(printMaterialPanel, -1, 'ABS')
|
||||
self.printMaterialDiameter = wx.TextCtrl(printMaterialPanel, -1, profile.getProfileSetting('filament_diameter'))
|
||||
|
||||
self.printSupport = wx.CheckBox(configPanel, -1, 'Print support structure')
|
||||
|
||||
sizer = wx.GridBagSizer()
|
||||
configPanel.SetSizer(sizer)
|
||||
|
||||
sb = wx.StaticBox(configPanel, label="Select a print type:")
|
||||
sb = wx.StaticBox(printTypePanel, label="Select a print type:")
|
||||
boxsizer = wx.StaticBoxSizer(sb, wx.VERTICAL)
|
||||
boxsizer.Add(self.printTypeNormal)
|
||||
boxsizer.Add(self.printTypeLow)
|
||||
boxsizer.Add(self.printTypeHigh)
|
||||
boxsizer.Add(self.printTypeJoris)
|
||||
sizer.Add(boxsizer, (0,0), flag=wx.EXPAND)
|
||||
printTypePanel.SetSizer(wx.BoxSizer(wx.VERTICAL))
|
||||
printTypePanel.GetSizer().Add(boxsizer, flag=wx.EXPAND)
|
||||
sizer.Add(printTypePanel, (0,0), flag=wx.EXPAND)
|
||||
|
||||
sb = wx.StaticBox(configPanel, label="Material:")
|
||||
sb = wx.StaticBox(printMaterialPanel, label="Material:")
|
||||
boxsizer = wx.StaticBoxSizer(sb, wx.VERTICAL)
|
||||
boxsizer.Add(self.printMaterialPLA)
|
||||
boxsizer.Add(self.printMaterialABS)
|
||||
boxsizer.Add(wx.StaticText(configPanel, -1, 'Diameter:'))
|
||||
boxsizer.Add(wx.StaticText(printMaterialPanel, -1, 'Diameter:'))
|
||||
boxsizer.Add(self.printMaterialDiameter)
|
||||
sizer.Add(boxsizer, (1,0), flag=wx.EXPAND)
|
||||
printMaterialPanel.SetSizer(wx.BoxSizer(wx.VERTICAL))
|
||||
printMaterialPanel.GetSizer().Add(boxsizer, flag=wx.EXPAND)
|
||||
sizer.Add(printMaterialPanel, (1,0), flag=wx.EXPAND)
|
||||
|
||||
sb = wx.StaticBox(configPanel, label="Other:")
|
||||
boxsizer = wx.StaticBoxSizer(sb, wx.VERTICAL)
|
||||
|
|
Loading…
Reference in New Issue