Older stuff/Tests_alias_TKinter_gui.py
def stop_button_action(self):
        """
        Stops the simulation after clicking the Stop button.
        Perform the action only when the simulation is running or paused.
        """
        if self.simulation_state in ["running", "paused"]:
            self.simulation_state = "stopped"
            self.run_button["bd"] = 2
            self.pause_button["bd"] = 2
            self.stop_button["bd"] = 20
            # Making parameters again editable for the next cycle
            for parameter in self.number_parameters_to_get_from_user:
                getattr(self, parameter["input_name"])["state"] = "normal"

            # Saving the current results to CSV and PNG files
            self.save_results_to_csv_file(self.Sim.t[1:], self.Sim.T_x0,
                                        self.chosen_material, "NumericalForward")
            self.save_results_to_png_file(self.temperature_figure, self.Sim.T_x0[0],
                                        self.Sim.t[-1], self.chosen_material, "NumericalForward")

        Stops the simulation after clicking the Stop button.
        Perform the action only when the simulation is running or paused.
        
Stops the simulation after clicking the Stop button.
Perform the action only when the simulation is running or paused.
Stops the simulation after clicking the Stop button . Perform the action only when the simulation is running or paused .
def stop_button_action(self):
        if self.simulation_state in ["running", "paused"]:
            self.simulation_state = "stopped"
            self.run_button["bd"] = 2
            self.pause_button["bd"] = 2
            self.stop_button["bd"] = 20
            for parameter in self.number_parameters_to_get_from_user:
                getattr(self, parameter["input_name"])["state"] = "normal"
            self.save_results_to_csv_file(self.Sim.t[1:], self.Sim.T_x0,
                                        self.chosen_material, "NumericalForward")
            self.save_results_to_png_file(self.temperature_figure, self.Sim.T_x0[0],
                                        self.Sim.t[-1], self.chosen_material, "NumericalForward")
def stop_button_action ( self ) : if self . simulation_state in [ "running" , "paused" ] : self . simulation_state = "stopped" self . run_button [ "bd" ] = 2 self . pause_button [ "bd" ] = 2 self . stop_button [ "bd" ] = 20 for parameter in self . number_parameters_to_get_from_user : getattr ( self , parameter [ "input_name" ] ) [ "state" ] = "normal" self . save_results_to_csv_file ( self . Sim . t [ 1 : ] , self . Sim . T_x0 , self . chosen_material , "NumericalForward" ) self . save_results_to_png_file ( self . temperature_figure , self . Sim . T_x0 [ 0 ] , self . Sim . t [ - 1 ] , self . chosen_material , "NumericalForward" )
Stops the simulation after clicking the Stop button.
Stops the simulation after clicking the Stop button .
"""
        Stops the simulation after clicking the Stop button.
        Perform the action only when the simulation is running or paused.
        """ # Making parameters again editable for the next cycle # Saving the current results to CSV and PNG files
self