mailr5383 - /1.3/generic_fns/pymol.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on April 07, 2008 - 18:26:
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):




Related Messages


Powered by MHonArc, Updated Mon Apr 07 18:40:11 2008