Author: bugman Date: Mon Apr 7 18:26:53 2008 New Revision: 5383 URL: http://svn.gna.org/viewcvs/relax?rev=5383&view=rev Log: Converted the clear_history() function to a method of the PyMOL data object. Modified: 1.3/generic_fns/pymol.py Modified: 1.3/generic_fns/pymol.py URL: http://svn.gna.org/viewcvs/relax/1.3/generic_fns/pymol.py?rev=5383&r1=5382&r2=5383&view=diff ============================================================================== --- 1.3/generic_fns/pymol.py (original) +++ 1.3/generic_fns/pymol.py Mon Apr 7 18:26:53 2008 @@ -37,6 +37,13 @@ """Variable for storing the pymol command history.""" + def clear_history(): + """Method for clearing the PyMOL command history.""" + + self.command_history = "" + + + # Initialise the Pymol data container. pymol_data = Pymol() """Pymol data container instance.""" @@ -62,12 +69,6 @@ # Colour by secondary structure. self.pipe_write("util.cbss(" + `id` + ", 'red', 'yellow', 'green')") - - -def clear_history(): - """Function for clearing the PyMOL command history.""" - - pymol_data.command_history = "" def command(run, command):