chiark / gitweb /
Properly select the first item in the combo box, fixing the problems on linux and...
authordaid <daid303@gmail.com>
Tue, 19 Nov 2013 17:30:32 +0000 (18:30 +0100)
committerdaid <daid303@gmail.com>
Tue, 19 Nov 2013 17:30:32 +0000 (18:30 +0100)
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)