static PyObject *loop(PyObject *self, PyObject *args) { if (!PyArg_ParseTuple(args, (char *)"")) return NULL; VMDApp *app = get_vmdapp(); app->animation_set_style(Animation::ANIM_LOOP); Py_INCREF(Py_None); return Py_None; }
static void style_cb(Fl_Widget *w, void *v) { Fl_Choice *choice = (Fl_Choice *)w; VMDApp *app = (VMDApp *)v; app->animation_set_style(choice->value()); }