From: daid Date: Tue, 19 Nov 2013 17:30:32 +0000 (+0100) Subject: Properly select the first item in the combo box, fixing the problems on linux and... X-Git-Tag: 13.11.2~6 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=5b6a350895bdc95857240d90c952cacbfab46c13;p=cura.git Properly select the first item in the combo box, fixing the problems on linux and mac with the image converter. --- diff --git a/Cura/gui/tools/imageToMesh.py b/Cura/gui/tools/imageToMesh.py index 22b177c5..37fcfcd0 100644 --- a/Cura/gui/tools/imageToMesh.py +++ b/Cura/gui/tools/imageToMesh.py @@ -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)