chiark / gitweb /
Add popup on textctrl, even tough it does not work for MacOS, it does work for linux...
authordaid <daid303@gmail.com>
Tue, 10 Apr 2012 13:49:09 +0000 (15:49 +0200)
committerdaid <daid303@gmail.com>
Tue, 10 Apr 2012 13:49:09 +0000 (15:49 +0200)
Cura/gui/configBase.py

index 871e4ad9f672d9ff7d2a31892091ab807384d9e9..aeaaaf87d55b994f1a780b28157d4cd199dddf0a 100644 (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()