def _do_set_sensitive(self, **kwargs): """ Set widget sensitivity as needed for the selected meter. :return: False if successful or True if an error is encountered. :rtype: bool """ _return = False AssessmentResults.do_set_sensitive(self, *kwargs) _attributes = self._dtc_data_controller.request_get_attributes( self._hardware_id) self.txtPiA.set_sensitive(False) self.txtPiF.set_sensitive(False) self.txtPiT.set_sensitive(False) if _attributes['hazard_rate_method_id'] == 2: self.txtPiE.set_sensitive(True) if self._subcategory_id == 2: self.txtPiA.set_sensitive(True) self.txtPiF.set_sensitive(True) elif self._subcategory_id == 1: self.txtPiT.set_sensitive(True) self.txtPiQ.set_sensitive(False) return _return
def _do_set_sensitive(self, **kwargs): # pylint: disable=unused-argument """ Set widget sensitivity as needed for the selected integrated circuit. :return: False if successful or True if an error is encountered. :rtype: bool """ _return = False AssessmentResults.do_set_sensitive(self, **kwargs) _attributes = self._dtc_data_controller.request_get_attributes( self._hardware_id) self.txtC1.set_sensitive(False) self.txtPiT.set_sensitive(False) self.txtC2.set_sensitive(False) self.txtPiL.set_sensitive(False) self.txtLambdaCYC.set_sensitive(False) self.txtLambdaBD.set_sensitive(False) self.txtPiMFG.set_sensitive(False) self.txtPiCD.set_sensitive(False) self.txtLambdaBP.set_sensitive(False) self.txtPiPT.set_sensitive(False) self.txtLambdaEOS.set_sensitive(False) self.txtPiA.set_sensitive(False) if _attributes['subcategory_id'] == 10: self.txtLambdaB.set_sensitive(False) self.txtLambdaB.set_visible(False) self.txtLambdaBD.set_sensitive(True) self.txtPiMFG.set_sensitive(True) self.txtPiCD.set_sensitive(True) self.txtLambdaBP.set_sensitive(True) self.txtPiPT.set_sensitive(True) self.txtLambdaEOS.set_sensitive(True) self.txtPiE.set_sensitive(True) if _attributes['hazard_rate_method_id'] == 1: self.txtLambdaB.set_sensitive(True) else: self.txtPiT.set_sensitive(True) self.txtPiE.set_sensitive(True) self.txtPiQ.set_sensitive(True) if _attributes['subcategory_id'] in [1, 2, 3, 4, 5, 6, 7, 8, 9]: self.txtC1.set_sensitive(True) self.txtC2.set_sensitive(True) self.txtPiL.set_sensitive(True) if _attributes['subcategory_id'] in [5, 6, 7, 8]: self.txtLambdaCYC.set_sensitive(True) if _attributes['subcategory_id'] == 9: self.txtPiA.set_sensitive(True) return _return
def _do_set_sensitive(self, **kwargs): """ Set widget sensitivity as needed for the selected resistor. :return: False if successful or True if an error is encountered. :rtype: bool """ _return = AssessmentResults.do_set_sensitive(self, **kwargs) _attributes = self._dtc_data_controller.request_get_attributes( self._hardware_id) self.txtPiR.set_sensitive(False) self.txtPiT.set_sensitive(False) self.txtPiNR.set_sensitive(False) self.txtPiTAPS.set_sensitive(False) self.txtPiV.set_sensitive(False) self.txtPiC.set_sensitive(False) if _attributes['hazard_rate_method_id'] == 2: self.txtPiE.set_sensitive(True) if _attributes['subcategory_id'] != 8: self.txtPiR.set_sensitive(True) if _attributes['subcategory_id'] == 4: self.txtPiT.set_sensitive(True) self.txtPiNR.set_sensitive(True) if _attributes['subcategory_id'] in [9, 10, 11, 12, 13, 14, 15]: self.txtPiTAPS.set_sensitive(True) self.txtPiV.set_sensitive(True) if _attributes['subcategory_id'] in [10, 12]: self.txtPiC.set_sensitive(True) return _return
def _do_set_sensitive(self, **kwargs): """ Set widget sensitivity as needed for the selected semiconductor. :return: False if successful or True if an error is encountered. :rtype: bool """ _return = AssessmentResults.do_set_sensitive(self, **kwargs) _attributes = self._dtc_data_controller.request_get_attributes( self._hardware_id) self.txtPiT.set_sensitive(False) self.txtPiA.set_sensitive(False) self.txtPiC.set_sensitive(False) self.txtPiR.set_sensitive(False) self.txtPiM.set_sensitive(False) self.txtPiI.set_sensitive(False) self.txtPiP.set_sensitive(False) self.txtPiS.set_sensitive(False) if _attributes['hazard_rate_method_id'] == 2: self.txtPiE.set_sensitive(True) self.txtPiT.set_sensitive(True) if _attributes['subcategory_id'] == 1: self.txtPiC.set_sensitive(True) if _attributes['subcategory_id'] == 13: self.txtPiI.set_sensitive(True) self.txtPiP.set_sensitive(True) if _attributes['subcategory_id'] in [2, 3, 4, 7, 8, 13]: self.txtPiA.set_sensitive(True) if _attributes['subcategory_id'] in [7, 8]: self.txtPiM.set_sensitive(True) if _attributes['subcategory_id'] in [2, 3, 6, 10]: self.txtPiR.set_sensitive(True) if _attributes['subcategory_id'] in [1, 3, 6, 10]: self.txtPiS.set_sensitive(True) return _return
def _do_set_sensitive(self, **kwargs): # pylint: disable=unused-argument """ Set widget sensitivity as needed for the selected capacitor. :return: False if successful or True if an error is encountered. :rtype: bool """ _return = AssessmentResults.do_set_sensitive(self) _attributes = self._dtc_data_controller.request_get_attributes( self._hardware_id) if _attributes['hazard_rate_method_id'] == 1: self.txtPiCV.set_sensitive(False) self.txtPiCF.set_sensitive(False) self.txtPiC.set_sensitive(False) self.txtPiE.set_sensitive(False) else: self.txtPiCV.set_sensitive(True) self.txtPiCF.set_sensitive(True) self.txtPiC.set_sensitive(True) self.txtPiE.set_sensitive(True) return _return