File size: 957 Bytes
d59bb1b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
---
title: create_menu_item(2)
date: 24/09/08
---
# NAME
create_menu_item - create menu item
# SYNOPSIS
create_menu_item
[-name name]
[-path menu_path]
-text item_text
-script tcl_script
[-shortcut key_shortcut]
[-echo]
# DESCRIPTION
This command add items to the menubar.
Returns: name of the new item, either ``name`` or ``actionX``.
# OPTIONS
`-name`: (optional) name of the item, used when deleting the item
`-path`: (optional) Menu path to place the new item in (hierarchy is separated by /), defaults to "Custom Scripts", but this can also be "Tools" or "New menu/New submenu"
`-text`: The text to put on the item
`-script`: The tcl script to evaluate when the button is pressed
`-shortcut`: (optional) key shortcut to trigger this item
`-echo`: (optional) indicate that the commands in the ``tcl_script`` should be echoed in the log.
# ARGUMENTS
This command has no arguments.
# EXAMPLES
# SEE ALSO
|