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

py_menu.C File Reference

#include "py_commands.h"
#include "VMDTkinterMenu.h"
#include "VMDApp.h"

Go to the source code of this file.

Functions

PyObject * show (PyObject *self, PyObject *args)
PyObject * location (PyObject *self, PyObject *args)
PyObject * addmenu (PyObject *self, PyObject *args)
PyObject * registermenu (PyObject *self, PyObject *args)
void initvmdmenu ()

Variables

PyMethodDef methods []


Function Documentation

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

Definition at line 42 of file py_menu.C.

References VMDApp::add_menu, get_vmdapp, VMDApp::menu_add_extension, and NULL.

void initvmdmenu  
 

Definition at line 95 of file py_menu.C.

References methods.

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

Definition at line 25 of file py_menu.C.

References get_vmdapp, VMDApp::menu_location, VMDApp::menu_move, and NULL.

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

Definition at line 59 of file py_menu.C.

References VMDApp::add_menu, get_vmdapp, VMDApp::menu_add_extension, NULL, and VMDTkinterMenu::register_windowproc.

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

Definition at line 13 of file py_menu.C.

References get_vmdapp, VMDApp::menu_show, VMDApp::menu_status, and NULL.


Variable Documentation

PyMethodDef methods[] [static]
 

Initial value:

 {
  {(char *)"add", (vmdPyMethod)addmenu, METH_VARARGS,
    (char *)"add(name, root) -- add to VMD extension menu"},
  {(char *)"register", (vmdPyMethod)registermenu, METH_VARARGS,
    (char *)"register(name, func, menupath) -- func returns Tk() instance"},
  {(char *)"show", (vmdPyMethod)show, METH_VARARGS,
    (char *)"show(name, onoff) -- show/hide registered window"},
  {(char *)"location", (vmdPyMethod)location, METH_VARARGS, 
    (char *)"location(name, (x, y)) -- set menu location"},
  {NULL, NULL}
}

Definition at line 83 of file py_menu.C.

Referenced by initvmdmenu.


Generated on Sun Jul 6 01:28:08 2008 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002