+ """Finalize the program, deleting or releasing all associated resources.
+ Currently, the following is done:
+ * the graphics adapter is told to
+ * all attributes are set to None or False
+ A finalized program file cannot be used for further simulations.
+ This method may be called more than once without error.
+ if self.gAdapter is not None:
+ self.do_create_window = False
+ self.key_press_functions = None
+ self._screenshot_recorder = None
"""Resets the simulation by resetting the graphics adapter and creating