Older stuff/Tests_alias_TKinter_gui.py
def display_error_value(self, error, margin=0.5):
        """
        Displays the numerical error that is the result of calculation.
        If the error is bigger than some margin, then indicate failure with
            red background - otherwise colour it green.
        """
        rounded_error = round(error, 2)
        self.error_value_placeholder["text"] = "Error value: {}".format(rounded_error)

        if rounded_error < margin:
            self.error_value_placeholder["bg"] = "green"
        else:
            self.error_value_placeholder["bg"] = "red"

        Displays the numerical error that is the result of calculation.
        If the error is bigger than some margin, then indicate failure with
            red background - otherwise colour it green.
        
Displays the numerical error that is the result of calculation.
If the error is bigger than some margin, then indicate failure with
red background - otherwise colour it green.
Displays the numerical error that is the result of calculation . If the error is bigger than some margin then indicate failure with red background - otherwise colour it green .
def display_error_value(self, error, margin=0.5):
        rounded_error = round(error, 2)
        self.error_value_placeholder["text"] = "Error value: {}".format(rounded_error)
        if rounded_error < margin:
            self.error_value_placeholder["bg"] = "green"
        else:
            self.error_value_placeholder["bg"] = "red"
def display_error_value ( self , error , margin = 0.5 ) : rounded_error = round ( error , 2 ) self . error_value_placeholder [ "text" ] = "Error value: {}" . format ( rounded_error ) if rounded_error < margin : self . error_value_placeholder [ "bg" ] = "green" else : self . error_value_placeholder [ "bg" ] = "red"
Displays the numerical error that is the result of calculation.
Displays the numerical error that is the result of calculation .
"""
        Displays the numerical error that is the result of calculation.
        If the error is bigger than some margin, then indicate failure with
            red background - otherwise colour it green.
        """
self
error
margin