visiannot.visiannot.components.MenuBar

Summary

Module defining MenuBar

API

Class MenuBar

class visiannot.visiannot.components.MenuBar.MenuBar(win_parent, lay_parent)[source]

Bases: PyQt5.QtWidgets.QMenuBar

Menu bar item

Parameters
  • win_parent (QtWidgets.QWidget) – container of the parent window

  • lay_parent (QtWidgets.QGridLayout) – layout of the parent window, where to add the menu bar

In order to add a menu or an action, the method addMenuAndActions() may be used.

Methods:

add_menu_with_actions(menu_name, action_dict)

Adds menus with actions to menu bar

open_documentation()

Static method for launching the default web browser and loading ViSiAnnoT ReadTheDocs documentation

Attributes:

win_parent

(QtWidgets.QWidget) Container of the parent window

win_about

(WindowAbout) Container of the pop-up window with information about ViSiAnnoT

win_license

(WindowLicense) Container of the pop-up window with ViSiAnnoT license

add_menu_with_actions(menu_name, action_dict)[source]

Adds menus with actions to menu bar

Parameters
  • menu_name (str) – name of the menu to add

  • action_dict (dict) – actions to add in the menu, each element corresponds one action, key is the action name, value is the slot method to be called when activating the action

static open_documentation()[source]

Static method for launching the default web browser and loading ViSiAnnoT ReadTheDocs documentation

win_about

(WindowAbout) Container of the pop-up window with information about ViSiAnnoT

win_license

(WindowLicense) Container of the pop-up window with ViSiAnnoT license

win_parent

(QtWidgets.QWidget) Container of the parent window