chiark / gitweb /
Properly select the first item in the combo box, fixing the problems on linux and...
[cura.git] / Cura / gui / tools / imageToMesh.py
index 22b177c5b5dee4b806f4888b7184a27cee3eb236..37fcfcd0f1b70415b9e851e9c281b512a404a403 100644 (file)
@@ -43,10 +43,12 @@ class convertImageDialog(wx.Dialog):
                options = ['Darker is higher', 'Lighter is higher']
                self.invertInput = wx.ComboBox(p, -1, options[0], choices=options, style=wx.CB_DROPDOWN|wx.CB_READONLY)
                s.Add(self.invertInput, pos=(3, 1), flag=wx.LEFT|wx.TOP|wx.RIGHT|wx.EXPAND, border=5)
+               self.invertInput.SetSelection(0)
 
                options = ['No smoothing', 'Light smoothing', 'Heavy smoothing']
                self.smoothInput = wx.ComboBox(p, -1, options[0], choices=options, style=wx.CB_DROPDOWN|wx.CB_READONLY)
                s.Add(self.smoothInput, pos=(4, 1), flag=wx.LEFT|wx.TOP|wx.RIGHT|wx.EXPAND, border=5)
+               self.smoothInput.SetSelection(0)
 
                self.okButton = wx.Button(p, -1, 'Ok')
                s.Add(self.okButton, pos=(5, 1), flag=wx.ALL, border=5)