def delete_device(self): Device.delete_device(self) for att in self.dyn_attrs_dict.keys(): listener_name = att + 'Listener' self.dyn_attrs_dict[att][0].removeListener(self.__dict__[listener_name])
def delete_device(self): Device.delete_device(self) self.__spec_motor = None