From f333454e38906ffc51875778c475fb4843dd77a7 Mon Sep 17 00:00:00 2001 From: HomeWorld Date: Fri, 3 Sep 2010 14:19:36 +0300 Subject: [PATCH] Added tooltips for the rest of statictext controls (~90%) --- gui/statsPane.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gui/statsPane.py b/gui/statsPane.py index 3ee040e48..fa9391f0c 100644 --- a/gui/statsPane.py +++ b/gui/statsPane.py @@ -89,15 +89,17 @@ class StatsPane(wx.Panel): value = value if value is not None else 0 if isinstance(value, basestring): label.SetLabel(value) + label.SetToolTip(wx.ToolTip(value)) else: label.SetLabel(shorten(value, rounding)) + label.SetToolTip(wx.ToolTip("%.1f" % value)) for labelName, value, rounding in stats: label = getattr(self, labelName) value = value() if fit is not None else 0 value = value if value is not None else 0 label.SetLabel(shorten(value, rounding)) - + label.SetToolTip(wx.ToolTip("%.1f" % value)) # cap stuff capState = fit.capState if fit is not None else 0 capStable = fit.capStable if fit is not None else False