The vmdcallbacks and vmdmenu modules are only useful in the context of GUI VMD using a compiled-in Python interpreter.

VMD Callbacks

Callbacks are methods that are invoked whenever some GUI trigger happens, for example, clicking an item in a menu. Adding callbacks is useful to create interactive graphs or plugins that alter VMD or molecule state in response to user input.

add_callback
del_callback

VMD Menu

New menus can be added to the GUI using the vmdmenu module:

add Add a new entry to a VMD menu
location Sets or queries menu location
register Add an item to a menu and register a function to be called when it is selected.
show Show or hide a registered window, or queries window visibility