From a72c77ae22296438b31f3905770830f87afe2313 Mon Sep 17 00:00:00 2001 From: Corollax Date: Sun, 24 Oct 2010 18:02:38 -0500 Subject: [PATCH] Added some tooltips to the capacitor icons. I think we can close the tooltip icons ticket (105) now. We still need to implement the ticket for scan resolution, but that can come another day. Changed readme file to reflect Oolong the rabbit. --- README | 2 +- gui/builtinStatsViews/capacitorViewFull.py | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/README b/README index b3dea8e4a..e35fc87cd 100644 --- a/README +++ b/README @@ -1,5 +1,5 @@ We should probably put something interesting in here. -Instead, here's a kitten with a pancake on its head: +Instead, here's a bunny with a pancake on its head: ___ m(^,^)m diff --git a/gui/builtinStatsViews/capacitorViewFull.py b/gui/builtinStatsViews/capacitorViewFull.py index cd51a1d80..3594da4ad 100644 --- a/gui/builtinStatsViews/capacitorViewFull.py +++ b/gui/builtinStatsViews/capacitorViewFull.py @@ -48,7 +48,10 @@ class CapacitorViewFull(StatsView): baseBox = wx.BoxSizer(wx.HORIZONTAL) sizerCapacitor.Add(baseBox, 0, wx.ALIGN_LEFT) - baseBox.Add(bitmapLoader.getStaticBitmap("capacitorInfo_big", parent, "icons"), 0, wx.ALIGN_CENTER) + bitmap = bitmapLoader.getStaticBitmap("capacitorInfo_big", parent, "icons") + tooltip = wx.ToolTip("Capacitor stability") + bitmap.SetToolTip(tooltip) + baseBox.Add(bitmap, 0, wx.ALIGN_CENTER) box = wx.BoxSizer(wx.VERTICAL) baseBox.Add(box, 0, wx.ALIGN_LEFT) @@ -79,7 +82,10 @@ class CapacitorViewFull(StatsView): sizerCapacitor.Add(baseBox, 0, wx.ALIGN_CENTER_HORIZONTAL) - baseBox.Add(bitmapLoader.getStaticBitmap("capacitorRecharge_big", parent, "icons"), 0, wx.ALIGN_CENTER) + tooltip = wx.ToolTip("Capacitor throughput") + bitmap = bitmapLoader.getStaticBitmap("capacitorRecharge_big", parent, "icons") + bitmap.SetToolTip(tooltip) + baseBox.Add(bitmap, 0, wx.ALIGN_CENTER) # Recharge chargeSizer = wx.FlexGridSizer(2, 3)