Avogadro  1.1.0
Public Member Functions
Avogadro::PythonInterpreter Class Reference

Class to embed the Python interpreter in Avogadro. More...

#include <avogadro/pythoninterpreter.h>

List of all members.

Public Member Functions

 PythonInterpreter ()
 ~PythonInterpreter ()
void setMolecule (Molecule *molecule)
void addSearchPath (const QString &path)
QString exec (const QString &command)
QString exec (const QString &command, boost::python::object local)
QString eval (const QString &string, boost::python::object local)

Detailed Description

Class to embed the Python interpreter in Avogadro.

Donald Ephraim Curtis

This class is used to help embed the Python interpreter into C++ apps which wish to expose parts of the Avogadro API. Specifically instances of Avogadro classes (Molecule / GLWidget).

Currently all instances of this class share the same namespace.

Constructor & Destructor Documentation



Member Function Documentation

commandstring containing the python command to perform on the interpreter

set the molecule object

The documentation for this class was generated from the following files: