From: Youness Alaoui Date: Fri, 2 Jan 2015 08:59:07 +0000 (-0500) Subject: Add tooltip for the setting control widget, not just for the label X-Git-Tag: 14.09-1.19~1^2~5 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=764e722e39ef741168d40dafd105c8b6d3f863fb;p=cura.git Add tooltip for the setting control widget, not just for the label Fixes issue #74 --- diff --git a/Cura/gui/configBase.py b/Cura/gui/configBase.py index 0c211c84..a9bbbea9 100644 --- a/Cura/gui/configBase.py +++ b/Cura/gui/configBase.py @@ -160,6 +160,7 @@ class SettingRow(object): self.ctrl.Bind(wx.EVT_TEXT, self.OnSettingChange) flag = wx.EXPAND + self.ctrl.Bind(wx.EVT_ENTER_WINDOW, self.OnMouseEnter) sizer.Add(self.label, (x,y), flag=wx.ALIGN_CENTER_VERTICAL|wx.LEFT,border=10) sizer.Add(self.ctrl, (x,y+1), flag=wx.ALIGN_BOTTOM|flag) sizer.SetRows(x+1) @@ -175,9 +176,11 @@ class SettingRow(object): def OnMouseEnter(self, e): self.label.SetToolTipString(self.setting.getTooltip()) + self.ctrl.SetToolTipString(self.setting.getTooltip()) def OnMouseExit(self, e): self.label.SetToolTipString('') + self.ctrl.SetToolTipString('') e.Skip() def OnSettingChange(self, e):