ntk menu

ntk menu command implemented as ::itcl::extendedclass ::ntk::classes::menu

Syntax:

ntk menu windowPathName ?options?

Options:

MethodVariables:

  • itemTypes: the types of the items. Possible values: entry menu separator. (default: {})
  • itemCallbacks: the callback for entry types (default: {})
  • items: the parts of the menu (default: {})

Public commands:

  • addentry text callback
  • addmenu text
  • addseparator

Inheritance:

  • theme