Cleaned up the format string

Much more readable now, but still not perfect :\
This commit is contained in:
Corollax
2010-11-20 07:04:44 -06:00
parent e4ae3e4417
commit e433af751d

View File

@@ -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: