Add popup on textctrl, even tough it does not work for MacOS, it does work for linux/windows.

master
daid 2012-04-10 15:49:09 +02:00
parent 0121b2c384
commit 7fb30600a2
1 changed files with 3 additions and 0 deletions

View File

@ -131,6 +131,9 @@ class SettingRow():
sizer.Add(self.label, (x,y), flag=wx.ALIGN_CENTER_VERTICAL)
sizer.Add(self.ctrl, (x,y+1), flag=wx.ALIGN_BOTTOM|wx.EXPAND)
sizer.SetRows(x+1)
self.ctrl.Bind(wx.EVT_ENTER_WINDOW, self.OnMouseEnter)
self.ctrl.Bind(wx.EVT_LEAVE_WINDOW, self.OnMouseExit)
self.defaultBGColour = self.ctrl.GetBackgroundColour()