heat_transfer_gui.py
def update_state_for_the_user(self) -> None:
        """
        Shows to the user in which state the simulation is - by highlighting
            specific button.
        We are just playing with the width of the border.
        Also mentioning the simulation state in the user info label.
        """

        # TODO: research some better way, as this is quite awkward, to assign
        #       always the whole stylesheet
        font = "font: 20pt 'MS Shell Dlg 2';"
        border = "border: 1px solid black;"
        border_active = "border: 15px solid black;"
        color_run = "background-color: rgb(0, 255, 0);"
        color_pause = "background-color: rgb(255, 140, 0);"
        color_stop = "background-color: rgb(255, 0, 0);"

        run_stylesheet = "{} {} {}".format(font, color_run, border_active if self.simulation_state == "running" else border)
        pause_stylesheet = "{} {} {}".format(font, color_pause, border_active if self.simulation_state == "paused" else border)
        stop_stylesheet = "{} {} {}".format(font, color_stop, border_active if self.simulation_state == "stopped" else border)
        self.button_run_3.setStyleSheet(run_stylesheet)
        self.button_pause_3.setStyleSheet(pause_stylesheet)
        self.button_stop_3.setStyleSheet(stop_stylesheet)

        if self.simulation_state == "started":
            self.show_message_to_user("Choose your parameters and click Run button. Hover over parameters to get details.")
        elif self.simulation_state == "running":
            self.show_message_to_user("Simulation started. Click Pause to pause it, or Stop to abort it completely.")
        elif self.simulation_state == "paused":
            self.show_message_to_user("Simulation paused. Click Run to continue simulation.")
        elif self.simulation_state == "stopped":
            self.show_message_to_user("Simulation stopped. Click Run to start with new simulation.")
        elif self.simulation_state == "finished":
            self.show_message_to_user("Simulation finished. Click Run to start with new simulation.")

        Shows to the user in which state the simulation is - by highlighting
            specific button.
        We are just playing with the width of the border.
        Also mentioning the simulation state in the user info label.
        
Shows to the user in which state the simulation is - by highlighting
specific button.
We are just playing with the width of the border.
Also mentioning the simulation state in the user info label.
Shows to the user in which state the simulation is - by highlighting specific button . We are just playing with the width of the border . Also mentioning the simulation state in the user info label .
def update_state_for_the_user(self) -> None:
        font = "font: 20pt 'MS Shell Dlg 2';"
        border = "border: 1px solid black;"
        border_active = "border: 15px solid black;"
        color_run = "background-color: rgb(0, 255, 0);"
        color_pause = "background-color: rgb(255, 140, 0);"
        color_stop = "background-color: rgb(255, 0, 0);"
        run_stylesheet = "{} {} {}".format(font, color_run, border_active if self.simulation_state == "running" else border)
        pause_stylesheet = "{} {} {}".format(font, color_pause, border_active if self.simulation_state == "paused" else border)
        stop_stylesheet = "{} {} {}".format(font, color_stop, border_active if self.simulation_state == "stopped" else border)
        self.button_run_3.setStyleSheet(run_stylesheet)
        self.button_pause_3.setStyleSheet(pause_stylesheet)
        self.button_stop_3.setStyleSheet(stop_stylesheet)
        if self.simulation_state == "started":
            self.show_message_to_user("Choose your parameters and click Run button. Hover over parameters to get details.")
        elif self.simulation_state == "running":
            self.show_message_to_user("Simulation started. Click Pause to pause it, or Stop to abort it completely.")
        elif self.simulation_state == "paused":
            self.show_message_to_user("Simulation paused. Click Run to continue simulation.")
        elif self.simulation_state == "stopped":
            self.show_message_to_user("Simulation stopped. Click Run to start with new simulation.")
        elif self.simulation_state == "finished":
            self.show_message_to_user("Simulation finished. Click Run to start with new simulation.")
def update_state_for_the_user ( self ) -> None : font = "font: 20pt 'MS Shell Dlg 2';" border = "border: 1px solid black;" border_active = "border: 15px solid black;" color_run = "background-color: rgb(0, 255, 0);" color_pause = "background-color: rgb(255, 140, 0);" color_stop = "background-color: rgb(255, 0, 0);" run_stylesheet = "{} {} {}" . format ( font , color_run , border_active if self . simulation_state == "running" else border ) pause_stylesheet = "{} {} {}" . format ( font , color_pause , border_active if self . simulation_state == "paused" else border ) stop_stylesheet = "{} {} {}" . format ( font , color_stop , border_active if self . simulation_state == "stopped" else border ) self . button_run_3 . setStyleSheet ( run_stylesheet ) self . button_pause_3 . setStyleSheet ( pause_stylesheet ) self . button_stop_3 . setStyleSheet ( stop_stylesheet ) if self . simulation_state == "started" : self . show_message_to_user ( "Choose your parameters and click Run button. Hover over parameters to get details." ) elif self . simulation_state == "running" : self . show_message_to_user ( "Simulation started. Click Pause to pause it, or Stop to abort it completely." ) elif self . simulation_state == "paused" : self . show_message_to_user ( "Simulation paused. Click Run to continue simulation." ) elif self . simulation_state == "stopped" : self . show_message_to_user ( "Simulation stopped. Click Run to start with new simulation." ) elif self . simulation_state == "finished" : self . show_message_to_user ( "Simulation finished. Click Run to start with new simulation." )
Shows to the user in which state the simulation is - by highlighting
specific button.
Shows to the user in which state the simulation is - by highlighting specific button .
"""
        Shows to the user in which state the simulation is - by highlighting
            specific button.
        We are just playing with the width of the border.
        Also mentioning the simulation state in the user info label.
        """ # TODO: research some better way, as this is quite awkward, to assign #       always the whole stylesheet
self