Fix the tooltip over the combobox for macOS X

master
Daid 2012-10-26 10:47:22 +02:00
parent bddb1744f4
commit 6cc99b4e44
1 changed files with 2 additions and 0 deletions

View 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':