heat_transfer_gui.py
def add_user_inputs(self, parent_layout) -> None:
        """
        Including the labels and input fields for all the input data that
            are required for a current situation (algorithm)

        Args:
            parent_layout ... into which layout we should include everything
        """

        for entry in self.get_current_input_service().number_parameters_to_get_from_user:
            new_layout = QHBoxLayout()

            label_text = "{} [{}]:".format(entry["name"], entry["unit_abbrev"])
            label = QLabel(label_text)
            label.setFont(QFont("Times", 15, QFont.Bold))
            label.setToolTip(entry["description"])

            # Generating the input and setting its font
            setattr(self, entry["input_name"], QLineEdit())
            getattr(self, entry["input_name"]).setFont(QFont("Times", 20, QFont.Bold))

            # Including the validation to be able to input only float values
            getattr(self, entry["input_name"]).setValidator(QDoubleValidator())
            # For some reason the validation treats floats with commas
            #   instead of dots, so we must display it in this manner
            # (Apparently, it is looking into the computer settings for the separator)
            value = str(entry["default_value"]).replace(".", ",")
            getattr(self, entry["input_name"]).setText(value)

            new_layout.addWidget(label)
            new_layout.addWidget(getattr(self, entry["input_name"]))

            parent_layout.addLayout(new_layout)

        Including the labels and input fields for all the input data that
            are required for a current situation (algorithm)

        Args:
            parent_layout ... into which layout we should include everything
        
Including the labels and input fields for all the input data that
are required for a current situation (algorithm)


Including the labels and input fields for all the input data that are required for a current situation ( algorithm )
def add_user_inputs(self, parent_layout) -> None:
        for entry in self.get_current_input_service().number_parameters_to_get_from_user:
            new_layout = QHBoxLayout()
            label_text = "{} [{}]:".format(entry["name"], entry["unit_abbrev"])
            label = QLabel(label_text)
            label.setFont(QFont("Times", 15, QFont.Bold))
            label.setToolTip(entry["description"])
            setattr(self, entry["input_name"], QLineEdit())
            getattr(self, entry["input_name"]).setFont(QFont("Times", 20, QFont.Bold))
            getattr(self, entry["input_name"]).setValidator(QDoubleValidator())
            value = str(entry["default_value"]).replace(".", ",")
            getattr(self, entry["input_name"]).setText(value)
            new_layout.addWidget(label)
            new_layout.addWidget(getattr(self, entry["input_name"]))
            parent_layout.addLayout(new_layout)
def add_user_inputs ( self , parent_layout ) -> None : for entry in self . get_current_input_service ( ) . number_parameters_to_get_from_user : new_layout = QHBoxLayout ( ) label_text = "{} [{}]:" . format ( entry [ "name" ] , entry [ "unit_abbrev" ] ) label = QLabel ( label_text ) label . setFont ( QFont ( "Times" , 15 , QFont . Bold ) ) label . setToolTip ( entry [ "description" ] ) setattr ( self , entry [ "input_name" ] , QLineEdit ( ) ) getattr ( self , entry [ "input_name" ] ) . setFont ( QFont ( "Times" , 20 , QFont . Bold ) ) getattr ( self , entry [ "input_name" ] ) . setValidator ( QDoubleValidator ( ) ) value = str ( entry [ "default_value" ] ) . replace ( "." , "," ) getattr ( self , entry [ "input_name" ] ) . setText ( value ) new_layout . addWidget ( label ) new_layout . addWidget ( getattr ( self , entry [ "input_name" ] ) ) parent_layout . addLayout ( new_layout )
Including the labels and input fields for all the input data that
are required for a current situation (algorithm)
Including the labels and input fields for all the input data that are required for a current situation ( algorithm )
"""
        Including the labels and input fields for all the input data that
            are required for a current situation (algorithm)

        Args:
            parent_layout ... into which layout we should include everything
        """ # Generating the input and setting its font # Including the validation to be able to input only float values # For some reason the validation treats floats with commas #   instead of dots, so we must display it in this manner # (Apparently, it is looking into the computer settings for the separator)
self
parent_layout