def METHOD_NAME(self,value, text):
    for count in range(self.count()):
        label = self.itemText(count)
        try:
            number = float(label.rstrip(" inchmuildeg").lower())
        except:
            number = None
        # assume continuous jogging (selection 0)
        if number is None:
            machn_incr = 0
        else:
            if self.linear:
                machn_incr = self.parse_increment(label)
            else:
                machn_incr = self.parse_angular_increment(label)
        #print count,self.itemText(count), machn_incr,value
        if machn_incr is not None and round(machn_incr,6) == round(value,6):
            self._block_signal = True
            self.setCurrentIndex(count)
            self._block_signal = False
            return
    self.setCurrentIndex(-1)