def propertyChanged(self, property_name, oldValue, newValue):
        if property_name == 'mnemonic':
            if self.sample_changer_hwobj is not None:
                self.disconnect(self.device, 'runningStateChanged',
                         self._updatePathRunning)
                self.disconnect(self.device, 'powerStateChanged',
                         self._updatePowerState)

        Qt4_SampleChangerBrick3.propertyChanged(self, property_name,
                         oldValue, newValue)

        if property_name == 'mnemonic':
            # load the new hardware object
      
            if self.sample_changer_hwobj is not None:
                self.connect(self.sample_changer_hwobj, 'runningStateChanged',
                             self._updatePathRunning)
                self.connect(self.sample_changer_hwobj, 'powerStateChanged',
                             self._updatePowerState)
           
                self._poweredOn = self.sample_changer_hwobj.isPowered()
                self._pathRunning = self.sample_changer_hwobj.isPathRunning()
                self._updateButtons()

        elif property_name == 'basketCount':
            # make sure that HT basket is added after Parent class has created all baskets
            if self.has_basket_HT:
                self.add_basket_HT()
        elif property_name == 'use_basket_HT':
            if newValue:
                if self.basket_count is not None:
                    self.has_basket_HT = True
                    self.add_basket_HT()
                else:
                    self.has_basket_HT = True
    def propertyChanged(self, property_name, oldValue, newValue):
        if property_name == 'mnemonic':
            if self.sample_changer_hwobj is not None:
                self.disconnect(self.device, 'runningStateChanged', \
                         self._updatePathRunning)
                self.disconnect(self.device, 'powerStateChanged', \
                         self._updatePowerState)

        Qt4_SampleChangerBrick3.propertyChanged(self, property_name, \
                         oldValue, newValue)

        if property_name == 'mnemonic':
            # load the new hardware object

            if self.sample_changer_hwobj is not None:
                self.connect(self.sample_changer_hwobj, 'runningStateChanged',\
                               self._updatePathRunning)
                self.connect(self.sample_changer_hwobj, 'powerStateChanged', \
                               self._updatePowerState)

                self._poweredOn = self.sample_changer_hwobj.isPowered()
                self._pathRunning = self.sample_changer_hwobj.isPathRunning()
                self._updateButtons()

        elif property_name == 'basketCount':
            # make sure that HT basket is added after Parent class has created all baskets
            if self.has_basket_HT:
                self.add_basket_HT()
        elif property_name == 'use_basket_HT':
            if newValue:
                if self.basket_count is not None:
                    self.has_basket_HT = True
                    self.add_basket_HT()
                else:
                    self.has_basket_HT = True