def setCoilLEDs(self, statusList): """ Sets the LED status for each of the transmitter coils using a boolean list. :param statusList: list of booleans describing the status of all coils (1-8) """ for index, LED in enumerate(self.coilLEDs): LED.setPixmap(guiutils.get_status_pixmap(statusList[index]))
def setCoilLED(self, coilNr, status): """ Sets the LED status for a single transmitter coil. :param coilNr: the given coil (1-8) :param status: a boolean describing the status of the given coil """ if status != self.coilLEDs[coilNr - 1].property('status'): self.coilLEDs[coilNr - 1].setPixmap(guiutils.get_status_pixmap(status))
def setAllCoilLEDs(self, status): """ Sets the LED status for each of the transmitter coils. :param status: a boolean describing the status of all coils """ for LED in self.coilLEDs: LED.setPixmap(guiutils.get_status_pixmap(status)) LED.setProperty('status', status)
def setStatusbarServerLED(self, status): self.statusBarServerLED.setPixmap(guiutils.get_status_pixmap(status))
def setStatus(self, connected): """ Sets the LED status for the OpenIGTLink connection. (ON=Green, OFF=Grey) :param connected: a boolean describing the status of the """ self.status.setPixmap(guiutils.get_status_pixmap(connected))
def setCoilLEDs(self, statusList): for index, LED in enumerate(self.coilLEDs): LED.setPixmap(guiutils.get_status_pixmap(statusList[index]))
def setCoilLED(self, coilNr, status): if status != self.coilLEDs[coilNr - 1].property('status'): self.coilLEDs[coilNr - 1].setPixmap( guiutils.get_status_pixmap(status))
def setAllCoilLEDs(self, status): for LED in self.coilLEDs: LED.setPixmap(guiutils.get_status_pixmap(status)) LED.setProperty('status', status)
def setStatus(self, connected): self.status.setPixmap(guiutils.get_status_pixmap(connected))
def setStatusbarServerLED(self, status): """ Updates the OpenIGTLink server status LED (on the status bar) :param status: a boolean indicating the status of the OpenIGTLink server """ self.statusBarServerLED.setPixmap(guiutils.get_status_pixmap(status))
def setStatusbarSystemLED(self, status): """ Updates the system status LED (on the status bar) :param status: a boolean indicating the status of the system """ self.statusBarSystemLED.setPixmap(guiutils.get_status_pixmap(status))