From e433af751d88409e725bfb62037f9c142fac4e65 Mon Sep 17 00:00:00 2001 From: Corollax Date: Sat, 20 Nov 2010 07:04:44 -0600 Subject: [PATCH] Cleaned up the format string Much more readable now, but still not perfect :\ --- gui/patternEditor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/patternEditor.py b/gui/patternEditor.py index 041c16da1..a8e1deca1 100644 --- a/gui/patternEditor.py +++ b/gui/patternEditor.py @@ -207,7 +207,7 @@ class DmgPatternEditorDlg (wx.Dialog): p.kineticAmount = self._KIN = self.editKinetic.GetValue() p.explosiveAmount = self._EXP = self.editExplosive.GetValue() total = self._EM + self._THERM + self._KIN + self._EXP - format = "EM: % 3d%% THERM: % 3d%% KIN: % 3d%% EXP: % 3d%%" + format = "EM: %d%%, THERM: %d%%, KIN: %d%%, EXP: %d%%" if total > 0: ltext = format %(self._EM*100/total, self._THERM*100/total, self._KIN*100/total, self._EXP*100/total) else: