Older stuff/Tests_alias_TKinter_gui.py
def pause_button_action(self):
        """
        Pauses the simulation after clicking the Pause button.
        Perform the action only when the simulation is running or stopped.
        """
        if self.simulation_state in ["running", "stopped"]:
            self.simulation_state = "paused"
            self.run_button["bd"] = 2
            self.pause_button["bd"] = 20
            self.stop_button["bd"] = 2

            # 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")

        Pauses the simulation after clicking the Pause button.
        Perform the action only when the simulation is running or stopped.
        
Pauses the simulation after clicking the Pause button.
Perform the action only when the simulation is running or stopped.
Pauses the simulation after clicking the Pause button . Perform the action only when the simulation is running or stopped .
def pause_button_action(self):
        if self.simulation_state in ["running", "stopped"]:
            self.simulation_state = "paused"
            self.run_button["bd"] = 2
            self.pause_button["bd"] = 20
            self.stop_button["bd"] = 2
            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 pause_button_action ( self ) : if self . simulation_state in [ "running" , "stopped" ] : self . simulation_state = "paused" self . run_button [ "bd" ] = 2 self . pause_button [ "bd" ] = 20 self . stop_button [ "bd" ] = 2 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" )
Pauses the simulation after clicking the Pause button.
Pauses the simulation after clicking the Pause button .
"""
        Pauses the simulation after clicking the Pause button.
        Perform the action only when the simulation is running or stopped.
        """ # Saving the current results to CSV and PNG files
self