def slot_projected_total(self, text): total, ok = text.toDouble() if not ok: return points = wilks.points(self.lifter.gender, self.lifter.weight, total) self.projected_points_edit.setText("%.2f" % points)
def points(self): return wilks.points(self.gender, self.weight, self.total)