Exemplo n.º 1
0
 def propertyChanged(self,property,oldValue,newValue):
     if property == 'offsetmeasure':
         self.__offsetMeasure = newValue
     elif property == 'command':
         pass
     else:
         BaseGraphicScan.propertyChanged(self,property,oldValue,newValue)
Exemplo n.º 2
0
 def propertyChanged(self, property, oldValue, newValue):
     if property == 'offsetmeasure':
         self.__offsetMeasure = newValue
     elif property == 'command':
         pass
     else:
         BaseGraphicScan.propertyChanged(self, property, oldValue, newValue)
    def propertyChanged(self,property,oldValue,newValue) :
        if property == 'offsetmeasure':
            self.__offsetMeasure = newValue
        elif property == 'command' :
            BaseGraphicScan.propertyChanged(self,property,oldValue,newValue)
            ho = self.getHardwareObject(newValue)
            if ho is not None:
                try:
                    self._ltinit = ho.getCommandObject('ltinit')
                    self._ltinit.connectSignal('commandReplyArrived',self.__ltinitFinished)
                except:
                    self._ltinit = None
                    logging.getLogger().error('ltinit not find in command file')
                    startButton = self._widgetTree.child('__startScan')
                    startButton.setEnabled(False)

        else:
            BaseGraphicScan.propertyChanged(self,property,oldValue,newValue)
    def propertyChanged(self,property,oldValue,newValue) :
        if property == 'offsetmeasure':
            self.__offsetMeasure = newValue
        elif property == 'command' :
            BaseGraphicScan.propertyChanged(self,property,oldValue,newValue)
            ho = self.getHardwareObject(newValue)
            if ho is not None:
                try:
                    self._ltinit = ho.getCommandObject('ltinit')
                    self._ltinit.connectSignal('commandReplyArrived',self.__ltinitFinished)
                except:
                    self._ltinit = None
                    logging.getLogger().error('ltinit not find in command file')
                    startButton = self._widgetTree.child('__startScan')
                    startButton.setEnabled(False)

        else:
            BaseGraphicScan.propertyChanged(self,property,oldValue,newValue)