Esempio n. 1
0
    def _do_load_page(self, **kwargs):
        """
        Load the integrated circuit assessment results page.

        :return: False if successful or True if an error is encountered.
        :rtype: bool
        """
        _return = False

        _attributes = AssessmentResults.do_load_page(self, *kwargs)

        self.txtC1.set_text(str(self.fmt.format(_attributes['C1'])))
        self.txtPiT.set_text(str(self.fmt.format(_attributes['piT'])))
        self.txtC2.set_text(str(self.fmt.format(_attributes['C2'])))
        self.txtPiL.set_text(str(self.fmt.format(_attributes['piL'])))
        self.txtLambdaCYC.set_text(
            str(self.fmt.format(_attributes['lambdaCYC'])))
        self.txtLambdaBD.set_text(str(self.fmt.format(
            _attributes['lambdaBD'])))
        self.txtPiMFG.set_text(str(self.fmt.format(_attributes['piMFG'])))
        self.txtPiCD.set_text(str(self.fmt.format(_attributes['piCD'])))
        self.txtLambdaBP.set_text(str(self.fmt.format(
            _attributes['lambdaBP'])))
        self.txtPiPT.set_text(str(self.fmt.format(_attributes['piPT'])))
        self.txtLambdaEOS.set_text(
            str(self.fmt.format(_attributes['lambdaEOS'])))
        self.txtPiA.set_text(str(self.fmt.format(_attributes['piA'])))

        return _return
Esempio n. 2
0
    def _do_load_page(self, **kwargs):
        """
        Load the inductive device assessment results wodgets.

        :return: False if successful or True if an error is encountered.
        :rtype: bool
        """
        _return = False

        _attributes = AssessmentResults.do_load_page(self, **kwargs)

        self.txtPiC.set_text(str(self.fmt.format(_attributes['piC'])))

        return _return
Esempio n. 3
0
    def _do_load_page(self, **kwargs):  # pylint: disable=unused-argument
        """
        Load the capacitor assessment results page.

        :return: False if successful or True if an error is encountered.
        :rtype: bool
        """
        _return = False

        _attributes = AssessmentResults.do_load_page(self, **kwargs)

        self.txtPiCV.set_text(str(self.fmt.format(_attributes['piCV'])))
        self.txtPiCF.set_text(str(self.fmt.format(_attributes['piCF'])))
        self.txtPiC.set_text(str(self.fmt.format(_attributes['piC'])))

        return _return
Esempio n. 4
0
    def _do_load_page(self, **kwargs):
        """
        Load the meter assessment results page.

        :return: False if successful or True if an error is encountered.
        :rtype: bool
        """
        _return = False

        _attributes = AssessmentResults.do_load_page(self, **kwargs)

        self.txtPiA.set_text(str(self.fmt.format(_attributes['piA'])))
        self.txtPiF.set_text(str(self.fmt.format(_attributes['piF'])))
        self.txtPiT.set_text(str(self.fmt.format(_attributes['piT'])))

        return _return
Esempio n. 5
0
    def _do_load_page(self, **kwargs):
        """
        Load the switch assessment results page.

        :return: False if successful or True if an error is encountered.
        :rtype: bool
        """
        _return = False

        _attributes = AssessmentResults.do_load_page(self, **kwargs)

        self.txtPiCYC.set_text(str(self.fmt.format(_attributes['piCYC'])))
        self.txtPiL.set_text(str(self.fmt.format(_attributes['piL'])))
        self.txtPiC.set_text(str(self.fmt.format(_attributes['piC'])))
        self.txtPiN.set_text(str(self.fmt.format(_attributes['piN'])))
        self.txtPiU.set_text(str(self.fmt.format(_attributes['piU'])))

        return _return
Esempio n. 6
0
    def _do_load_page(self, **kwargs):
        """
        Load the Resistor assessment results page.

        :return: False if successful or True if an error is encountered.
        :rtype: bool
        """
        _return = False

        _attributes = AssessmentResults.do_load_page(self, **kwargs)

        self.txtPiR.set_text(str(self.fmt.format(_attributes['piR'])))
        self.txtPiT.set_text(str(self.fmt.format(_attributes['piT'])))
        self.txtPiNR.set_text(str(self.fmt.format(_attributes['piNR'])))
        self.txtPiTAPS.set_text(str(self.fmt.format(_attributes['piTAPS'])))
        self.txtPiV.set_text(str(self.fmt.format(_attributes['piV'])))
        self.txtPiC.set_text(str(self.fmt.format(_attributes['piC'])))

        return _return
Esempio n. 7
0
    def _do_load_page(self, **kwargs):
        """
        Load the semiconductor assessment results page.

        :return: False if successful or True if an error is encountered.
        :rtype: bool
        """
        _return = False

        _attributes = AssessmentResults.do_load_page(self, **kwargs)

        self.txtPiT.set_text(str(self.fmt.format(_attributes['piT'])))
        self.txtPiA.set_text(str(self.fmt.format(_attributes['piA'])))
        self.txtPiC.set_text(str(self.fmt.format(_attributes['piC'])))
        self.txtPiR.set_text(str(self.fmt.format(_attributes['piR'])))
        self.txtPiM.set_text(str(self.fmt.format(_attributes['piM'])))
        self.txtPiI.set_text(str(self.fmt.format(_attributes['piI'])))
        self.txtPiP.set_text(str(self.fmt.format(_attributes['piP'])))
        self.txtPiS.set_text(str(self.fmt.format(_attributes['piS'])))

        return _return
Esempio n. 8
0
    def _do_load_page(self, **kwargs):
        """
        Load the miscellaneous devices assessment results page.

        :return: False if successful or True if an error is encountered.
        :rtype: bool
        """
        _return = False

        _attributes = AssessmentResults.do_load_page(self, **kwargs)

        self.txtPiU.set_text(str(self.fmt.format(_attributes['piU'])))
        self.txtPiA.set_text(str(self.fmt.format(_attributes['piA'])))

        if (_attributes['hazard_rate_method_id'] == 1
                and _attributes['subcategory_id'] in [3, 4]):
            self._lblModel.set_markup(
                u"<span foreground=\"blue\">\u03BB<sub>EQUIP</sub> = "
                u"\u03BB<sub>g</sub></span>")

        return _return