Beispiel #1
0
    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]))
Beispiel #2
0
    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))
Beispiel #3
0
    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)
Beispiel #4
0
 def setStatusbarServerLED(self, status):
     self.statusBarServerLED.setPixmap(guiutils.get_status_pixmap(status))
Beispiel #5
0
    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))
Beispiel #6
0
 def setCoilLEDs(self, statusList):
     for index, LED in enumerate(self.coilLEDs):
         LED.setPixmap(guiutils.get_status_pixmap(statusList[index]))
Beispiel #7
0
 def setCoilLED(self, coilNr, status):
     if status != self.coilLEDs[coilNr - 1].property('status'):
         self.coilLEDs[coilNr - 1].setPixmap(
             guiutils.get_status_pixmap(status))
Beispiel #8
0
 def setAllCoilLEDs(self, status):
     for LED in self.coilLEDs:
         LED.setPixmap(guiutils.get_status_pixmap(status))
         LED.setProperty('status', status)
Beispiel #9
0
 def setStatus(self, connected):
     self.status.setPixmap(guiutils.get_status_pixmap(connected))
Beispiel #10
0
    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))
Beispiel #11
0
    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))