Skip to content

MenuBar#

MenuBar widget

Available in backends: qt, ipynb

Signals#

  • label_changed(str) - Emitted when the widget label changes.
  • native_parent_changed(object) - Emitted with the backend widget when the widget parent changes.

MenuBar #

Bases: MenuBarWidget

Menu bar that contains multiple menus.

Parameters:

  • name (str) –

    The name of the parameter represented by this widget. by default ""

  • annotation (Any) –

    The type annotation for the parameter represented by the widget, by default None

  • label (str) –

    A string to use for an associated Label widget (if this widget is being shown in a Container widget, and labels are on). By default, name will be used. Note: name refers the name of the parameter, as might be used in a signature, whereas label is just the label for that widget in the GUI.

  • tooltip (str) –

    A tooltip to display when hovering over the widget.

  • visible (bool) –

    Whether the widget is visible, by default True.

  • enabled (bool) –

    Whether the widget is enabled, by default True.

  • gui_only (bool) –

    If True, widget is excluded from any function signature representation. by default False. (This will likely be deprecated.)

  • parent (Any) –

    Optional parent widget of this widget. CAREFUL: if a parent is set, and subsequently deleted, this widget will likely be deleted as well (depending on the backend), and will no longer be usable.