Tornado API Reference : GUI Tcl Library (UNIX)
menu - menu bar manager
menuCreate - create a new menu on the top menu bar
menuButtonCreate - create a button in a top level menu
These routines allow the menu management for Tcl UNIX GUI.
menuCreate - create a new menu on the top menu bar
UNIX GUI
menuCreate [-help] name mnemonic
This command creates a new menu on the application's top menu bar. If -help is specified, this menu appears on the far right of the menu bar, in the normal help position. The menu has the specified name and mnemonic character. The mnemonic character appears underlined in the menu's name and can be used as a keyboard binding of the menu. Items are added to the menu with menuButtonCreate. "Creating" a menu item that already exists has no effect.
If a menu name has the form root|name, where root is the name of an existing menu, a submenu with the given name is created under the menu item root. This can be nested; for example, File|Open|Data would create a "Data" menu under the "Open" menu of the "File" menu. Root menus must be created before submenus.
menuButtonCreate
menuButtonCreate - create a button in a top level menu
UNIX GUI
menuButtonCreate menu name [mnemonic binding]
This function creates a menu button in the specified menu. The button is given the supplied name and mnemonic character. Binding is a Tcl expression that is executed when the button is pressed. If mnemonic and binding are not supplied, then a menubar separator (a horizontal line used to separate groups of menu items) is created instead of a button.
menuCreate