On this page:
Menu

image

class

class gui.Menu():

  implements MenuChildView

  constructor (

    label :: ObsOrValue.of(View.LabelString),

    ~enable: enable :: ObsOrValue.of(Boolean) = #true,

    ~help: help_text :: ObsOrValue.of(maybe(View.LabelString)) = #false,

    item :: ObsOrValue.of(MenuChildView),

    ...

  )

Creates a menu containing menu items and submenus for inclusion in a MenuBar, Menu, or PopupMenu.

See View.LabelString for information about keyboard mnemonics in label, which are used on some platforms for navigating menus using the keyboard (and not the same thing as keyboard shortcuts in menu items).