Esempio n. 1
0
 def _handleNames(cls, names):
     for pilot, name, teamName in names:
         if pilot not in cls.__info:
             cls.__info[pilot] = PilotInfo()
         cls.__info[pilot]._name = listToString(name)
         cls.__info[pilot]._teamName = listToString(teamName)
     cls._refresh()
Esempio n. 2
0
 def _newPilot(self, carId, name, skill, weight, state, pitCount):
     config = self._config.copy()
     config['skill'] = skill
     config['pilot_weight'] = weight
     w = CarStatusWidget(carId, state, pitCount, config)
     self.tabWidget.addTab(w, listToString(name))
Esempio n. 3
0
 def _teamsUpdate(self, team):
     teamId, name = team
     self.comboBox.addItem(listToString(name), teamId)
     self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(True)
Esempio n. 4
0
 def _teamsInit(self, teams):
     self.comboBox.clear()
     for teamId, name in teams:
         self.comboBox.addItem(listToString(name), teamId)
     self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(len(teams) > 0)
Esempio n. 5
0
 def _setLogMsg(self, msg):
     self.viewer.setPlainText(listToString(msg))
Esempio n. 6
0
 def _appendLogMsg(self, msg):
     self.viewer.appendPlainText(listToString(msg))