From 5b6a350895bdc95857240d90c952cacbfab46c13 Mon Sep 17 00:00:00 2001 From: daid Date: Tue, 19 Nov 2013 18:30:32 +0100 Subject: [PATCH] Properly select the first item in the combo box, fixing the problems on linux and mac with the image converter. --- Cura/gui/tools/imageToMesh.py | 2 ++ 1 file changed, 2 insertions(+) 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) -- 2.30.2