- Capitals are nicer where appropriate.

This commit is contained in:
ccremers 2006-08-09 12:11:55 +00:00
parent 663aa10dc7
commit 67ad867232
2 changed files with 4 additions and 4 deletions

View File

@ -138,7 +138,7 @@ class AttackWindow(wx.Frame):
def SetTitle(self): 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 tstr += " for claim %s" % self.claim.id
super(AttackWindow, self).SetTitle(tstr) super(AttackWindow, self).SetTitle(tstr)
@ -170,7 +170,7 @@ class AttackWindow(wx.Frame):
dp = wx.Notebook(self,-1) dp = wx.Notebook(self,-1)
for i in range(0,n): for i in range(0,n):
disp = AttackDisplay(self,dp,attacks[i]) 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) dp.AddPage(disp, classname)
self.displays.append(disp) self.displays.append(disp)

View File

@ -68,8 +68,8 @@ class Claim(object):
# attacks... # attacks...
self.okay = (not self.okay) self.okay = (not self.okay)
def stateName(self,count=1): def stateName(self,count=1,caps=False):
return stateDescription(self.state,count) return stateDescription(self.state,count,caps)
def __str__(self): def __str__(self):
s = "claim id [%s]" % (self.id) s = "claim id [%s]" % (self.id)