Example #1
0
 def __addXPsViolationPenalty(self):
     if self.penaltyDetails is not None:
         name, penalty = self.penaltyDetails
         penalty = style.makePercentLabel(penalty)
         value = style.makeStatRow('fairPlayViolation/{}'.format(name), column1=penalty, column2=penalty, column3=penalty, column4=penalty)
         self.addNextComponent(base.DirectStatsItem('', value))
     return
 def _addStatsRow(self,
                  label,
                  column1=None,
                  column2=None,
                  column3=None,
                  column4=None,
                  htmlKey=''):
     value = style.makeStatRow(label,
                               column1=column1,
                               column2=column2,
                               column3=column3,
                               column4=column4,
                               htmlKey=htmlKey)
     self.addNextComponent(base.DirectStatsItem('', value))
Example #3
0
 def __addStatsRowOverrideForWGMoneyOffline(self, label, column1=None, htmlKey='', **kwargs):
     value = style.makeStatRow(label, column1=column1, htmlKey=htmlKey)
     self.addNextComponent(base.DirectStatsItem('', value))