def _newBestSpeed(self, car, intermediate, speed): if car == self.__id: self.__best[intermediate] = mpsToString(speed) self.reset()
def _newChrono(self, car, intermediate, _lap, _time, speed): if car == self.__id: self.__last[intermediate] = mpsToString(speed) self.reset()
def _updateBestSpeedLabel(self, car, intermediate, lap, speed): s = "%s (%s in intermediate %i of lap %i)" % (mpsToString(speed), PilotInfo.get(car).name(), intermediate, lap) self.bestSpeedLabel.setText(s)