Example #1
0
static PyObject *scale_method(PyObject *self, PyObject *args) {
  if (!PyArg_ParseTuple(args, (char *)""))
    return NULL;

  VMDApp *app = get_vmdapp();
  const char *method = 
    app->colorscale_method_name(app->colorscale_method_current());
  return PyString_FromString(method);
}
Example #2
0
static PyObject* py_scale_method(PyObject *self, PyObject *args)
{

  VMDApp *app;
  const char *method;

  if (!(app = get_vmdapp()))
    return NULL;

  method = app->colorscale_method_name(app->colorscale_method_current());

  return as_pystring(method);
}