From: daid Date: Tue, 10 Apr 2012 13:49:09 +0000 (+0200) Subject: Add popup on textctrl, even tough it does not work for MacOS, it does work for linux... X-Git-Tag: RC3~88 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=7fb30600a2459b414cba059f9e38dae731c6fc89;p=cura.git Add popup on textctrl, even tough it does not work for MacOS, it does work for linux/windows. --- diff --git a/Cura/gui/configBase.py b/Cura/gui/configBase.py index 871e4ad9..aeaaaf87 100644 --- a/Cura/gui/configBase.py +++ b/Cura/gui/configBase.py @@ -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()