Package pipe_control :: Module pymol_control :: Class Pymol
[hide private]
[frames] | no frames]

Class Pymol

source code

The PyMOL execution object.

Instance Methods [hide private]
 
__init__(self, exec_mode=None)
Set up the PyMOL execution object.
source code
 
clear_history(self)
Clear the PyMOL command history.
source code
 
exec_cmd(self, command=None, store_command=True)
Execute a PyMOL command.
source code
 
open_gui(self)
Open the PyMOL GUI.
source code
 
open_pdb(self)
Open the PDB file in PyMOL.
source code
bool
running(self)
Test if PyMOL is running.
source code
Method Details [hide private]

__init__(self, exec_mode=None)
(Constructor)

source code 

Set up the PyMOL execution object.

Parameters:
  • exec_mode (None or str) - The execution mode which can be either 'module' or 'external'.

exec_cmd(self, command=None, store_command=True)

source code 

Execute a PyMOL command.

Parameters:
  • command (str) - The PyMOL command to send into the program.
  • store_command (bool) - A flag specifying if the command should be stored in the history variable.

running(self)

source code 

Test if PyMOL is running.

Returns: bool
Whether the Molmol pipe is open or not.