From ae6c51d2446440d770d014156090482b7456b29a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niklas=20B=C3=B6lter?= Date: Sat, 20 Nov 2010 23:39:58 +0100 Subject: [PATCH] Fixed some spacing issues in the HP/EHP toggle and a ?typo? --- gui/builtinStatsViews/resistancesViewFull.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gui/builtinStatsViews/resistancesViewFull.py b/gui/builtinStatsViews/resistancesViewFull.py index d927179eb..1954f1345 100644 --- a/gui/builtinStatsViews/resistancesViewFull.py +++ b/gui/builtinStatsViews/resistancesViewFull.py @@ -27,7 +27,7 @@ import service import gui.mainFrame import gui.builtinViews.fittingView as fv -EffictiveHpToggled, EFFECTIVE_HP_TOGGLED = wx.lib.newevent.NewEvent() +EffectiveHpToggled, EFFECTIVE_HP_TOGGLED = wx.lib.newevent.NewEvent() class ResistancesViewFull(StatsView): name = "resistancesViewFull" @@ -156,7 +156,7 @@ class ResistancesViewFull(StatsView): self.stEHPs.SetToolTip(wx.ToolTip("Click to toggle between effective HP and raw HP")) def toggleEHP(self, event): - wx.PostEvent(self.mainFrame, EffictiveHpToggled(effective=self.stEHPs.GetLabel() == " HP ")) + wx.PostEvent(self.mainFrame, EffectiveHpToggled(effective=self.stEHPs.GetLabel() == "HP")) def ehpSwitch(self, event): self.showEffective = event.effective @@ -168,14 +168,14 @@ class ResistancesViewFull(StatsView): #If we did anything intresting, we'd update our labels to reflect the new fit's stats here if fit is None and not self.showEffective: self.showEffective = True - wx.PostEvent(self.mainFrame, EffictiveHpToggled(effective=True)) + wx.PostEvent(self.mainFrame, EffectiveHpToggled(effective=True)) return elif fit is not None and fit.ID != self.activeFit and not self.showEffective: self.showEffective = True - wx.PostEvent(self.mainFrame, EffictiveHpToggled(effective=True)) + wx.PostEvent(self.mainFrame, EffectiveHpToggled(effective=True)) return - self.stEHPs.SetLabel(" EHP " if self.showEffective else " HP ") + self.stEHPs.SetLabel("EHP" if self.showEffective else "HP") self.activeFit = fit.ID if fit is not None else None for tankType in ("shield", "armor", "hull"):