This element must an immediate child of a tic_menubuton, tic_menu or tic_submenu

tic_menuitem(label, menutype, command, image, bind = NULL, pack = NULL, ...)

Arguments

label

text to display

menutype

one of the following:

command

When menu item is selected, run the function given by the command argument

cascade

Do not use. Use tic_submenu()

to create a submenu.
separator

Horizontal separato between menu items

checkbutton

A menuitem which functions as a checkbutton. Use this in conjunction with variable to specify the reactive_lgl variable to store the state of the button (i.e. TRUE/FALSE)

. Use in conjunctionwith command argument to run a function each time the button is selected.
radiobutton

Same as the checkbutton menu item, but fo defining a mutually exclusive set of selection options. See tic_radiobutton() for more information and examples

command

Function to evaluate when the widget is invoked.

image

pathname of image to display

bind

bind commands to particular events on this element. This may be a single result of bind_opts() or a list of them for multiple events.

pack

a named list of pack options for how to incorporate this element into its parent container. Default: NULL means to use the standard packing. See pack_opts() as a way of creating a valid list of pack options.

...

Other arguments are parsed as follows:

named arguments

Further options to be used during the creation of this widget. See the tcl/tk documentation for all arguments possible for this widget.

unnamed arguments

Container widgets (e.g. tic_frame()) treat any unnamed arguments as child objects. Non-container widgets (e.g tic_button()) will raise an error if there are any unnamed widgets.

Value

handle on the tcl/tk object

tcl/tk

See tcl/tk documentation for more information on this element https://www.tcl.tk/man/tcl8.6/TkCmd/menu.htm