- Capitals are nicer where appropriate.
This commit is contained in:
parent
663aa10dc7
commit
67ad867232
@ -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)
|
||||||
|
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user