示例#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]))
示例#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))
示例#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)
示例#4
0
 def setStatusbarServerLED(self, status):
     self.statusBarServerLED.setPixmap(guiutils.get_status_pixmap(status))
示例#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))
示例#6
0
 def setCoilLEDs(self, statusList):
     for index, LED in enumerate(self.coilLEDs):
         LED.setPixmap(guiutils.get_status_pixmap(statusList[index]))
示例#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))
示例#8
0
 def setAllCoilLEDs(self, status):
     for LED in self.coilLEDs:
         LED.setPixmap(guiutils.get_status_pixmap(status))
         LED.setProperty('status', status)
示例#9
0
文件: igtpanel.py 项目: eaa3/qt-anser
 def setStatus(self, connected):
     self.status.setPixmap(guiutils.get_status_pixmap(connected))
示例#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))
示例#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))