From 67ad86723268fbb180caf79b7a9ef30c532fbbc0 Mon Sep 17 00:00:00 2001 From: ccremers Date: Wed, 9 Aug 2006 12:11:55 +0000 Subject: [PATCH] - Capitals are nicer where appropriate. --- gui/Gui/Attackwindow.py | 4 ++-- gui/Scyther/Claim.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gui/Gui/Attackwindow.py b/gui/Gui/Attackwindow.py index a88a4f7..d6ec28d 100644 --- a/gui/Gui/Attackwindow.py +++ b/gui/Gui/Attackwindow.py @@ -138,7 +138,7 @@ class AttackWindow(wx.Frame): def SetTitle(self): - tstr = self.claim.stateName(len(self.claim.attacks)) + tstr = self.claim.stateName(len(self.claim.attacks),True) tstr += " for claim %s" % self.claim.id super(AttackWindow, self).SetTitle(tstr) @@ -170,7 +170,7 @@ class AttackWindow(wx.Frame): dp = wx.Notebook(self,-1) for i in range(0,n): disp = AttackDisplay(self,dp,attacks[i]) - classname = "%s %i" % (self.claim.stateName(),(i+1)) + classname = "%s %i" % (self.claim.stateName(1,True),(i+1)) dp.AddPage(disp, classname) self.displays.append(disp) diff --git a/gui/Scyther/Claim.py b/gui/Scyther/Claim.py index 6c5fde6..04c67e2 100644 --- a/gui/Scyther/Claim.py +++ b/gui/Scyther/Claim.py @@ -68,8 +68,8 @@ class Claim(object): # attacks... self.okay = (not self.okay) - def stateName(self,count=1): - return stateDescription(self.state,count) + def stateName(self,count=1,caps=False): + return stateDescription(self.state,count,caps) def __str__(self): s = "claim id [%s]" % (self.id)