chiark / gitweb /
Fix the tooltip over the combobox for macOS X
authorDaid <Daid303@gmail.com>
Fri, 26 Oct 2012 08:47:22 +0000 (10:47 +0200)
committerDaid <Daid303@gmail.com>
Fri, 26 Oct 2012 08:47:22 +0000 (10:47 +0200)
Cura/gui/configBase.py

index 0539ae0dd09c870c37cf4e146254a7cb596f26ea..6882483049dab1137b91205f878510f7d8dc97a4 100644 (file)
@@ -130,6 +130,7 @@ class SettingRow():
                else:
                        self.ctrl = wx.ComboBox(panel, -1, getSettingFunc(configName), choices=defaultValue, style=wx.CB_DROPDOWN|wx.CB_READONLY)
                        self.ctrl.Bind(wx.EVT_COMBOBOX, self.OnSettingChange)
+                       self.ctrl.Bind(wx.EVT_LEFT_DOWN, self.OnMouseExit)
                        flag = wx.EXPAND
 
                sizer.Add(self.label, (x,y), flag=wx.ALIGN_CENTER_VERTICAL|wx.LEFT,border=10)
@@ -148,6 +149,7 @@ class SettingRow():
 
        def OnMouseExit(self, e):
                self.panel.main.OnPopupHide(self)
+               e.Skip()
 
        def OnSettingChange(self, e):
                if self.type == 'profile':