vmd.vmdmenu.register¶
- 
vmd.vmdmenu.register()¶
- Add an item to a menu and register a function to be called when it is selected. - Parameters: - name (str) – Name of menu to add
- function (callable) – Function to call when menu selected
- menupath (str) – Path to add menu to, if it will be a submenu. Defaults to adding to the root menu