Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

py_vmd.C File Reference

#include "py_commands.h"
#include "vmd.h"
#include "DisplayDevice.h"
#include "UIText.h"
#include <tcl.h>

Go to the source code of this file.

Defines

#define INITERROR   return

Functions

PyObject * py_vmdupdate (PyObject *self, PyObject *args)
PyObject * py_vmdexit (PyObject *self, PyObject *args, PyObject *kwargs)
PyObject * py_evaltcl (PyObject *self, PyObject *args, PyObject *kwargs)
void initvmd ()

Variables

const char exit_doc []
const char evaltcl_doc []
PyMethodDef VMDAppMethods []
VMDAppthe_app = NULL
PyThreadState * event_tstate = NULL
const char vmd_moddoc []


Define Documentation

#define INITERROR   return
 

Definition at line 132 of file py_vmd.C.

Referenced by initvmd.


Function Documentation

void initvmd  
 

Definition at line 133 of file py_vmd.C.

References CAST_HACK, event_tstate, get_vmdapp, INITERROR, set_vmdapp, size, vmd_moddoc, VMDAppMethods, VMDgetDisplayFrame, VMDApp::VMDinit, VMDinitialize, VMDreadInit, and VMDreadStartup.

PyObject* py_evaltcl PyObject *    self,
PyObject *    args,
PyObject *    kwargs
[static]
 

Definition at line 57 of file py_vmd.C.

References as_pystring, UIText::get_tcl_interp, get_vmdapp, NULL, result, and VMDApp::uiText.

PyObject* py_vmdexit PyObject *    self,
PyObject *    args,
PyObject *    kwargs
[static]
 

Definition at line 27 of file py_vmd.C.

References get_vmdapp, NULL, and VMDApp::VMDexit.

PyObject* py_vmdupdate PyObject *    self,
PyObject *    args
[static]
 

Definition at line 11 of file py_vmd.C.

References as_pyint, get_vmdapp, and VMDApp::VMDupdate.


Variable Documentation

const char evaltcl_doc[] [static]
 

Initial value:

"Evaluates a command in the TCL interpreter. This can be useful for accessing "
"functionality that is not yet implemented via the Python interface.\n\n"
"Args:\n"
"    command (str): TCL command to evaluate\n"
"Returns:\n"
"    (str) Output from the TCL interpreter"

Definition at line 50 of file py_vmd.C.

PyThreadState* event_tstate = NULL [static]
 

Definition at line 94 of file py_vmd.C.

Referenced by initvmd.

const char exit_doc[] [static]
 

Initial value:

"Exits VMD\n\n"
"Args:\n"
"    message (str): Message to print\n"
"    code (int): Code to return. Defaults to 0 (normal exit)\n"
"    delay (int): Number of seconds to delay before exiting. Defaults to 0\n"

Definition at line 21 of file py_vmd.C.

VMDApp* the_app = NULL [static]
 

Definition at line 93 of file py_vmd.C.

const char vmd_moddoc[] [static]
 

Initial value:

"The main VMD python module. Provides access to the `evaltcl` method for "
"accessing features not yet available in the Python interface. When VMD "
"is built as a standalone Python module, the vmd module serves as an access "
"point for all other modules, such as `vmd.molecule` for example"

Definition at line 114 of file py_vmd.C.

Referenced by initvmd.

PyMethodDef VMDAppMethods[] [static]
 

Initial value:

 {
    {"VMDupdate", (PyCFunction) py_vmdupdate, METH_VARARGS },
    {"VMDexit", (PyCFunction) py_vmdexit, METH_VARARGS | METH_KEYWORDS, exit_doc },

    {"VMDevaltcl", (PyCFunction) py_evaltcl, METH_VARARGS | METH_KEYWORDS, evaltcl_doc },
    {"evaltcl", (PyCFunction) py_evaltcl, METH_VARARGS | METH_KEYWORDS, evaltcl_doc},

    { NULL, NULL }
}

Definition at line 83 of file py_vmd.C.

Referenced by initvmd.


Generated on Mon Apr 22 04:28:11 2024 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002