visiannot.visiannot.components.MenuBar¶
Module defining MenuBar
Summary¶
Classes¶
Menu bar item |
API¶
Class MenuBar¶
Methods:
|
Adds menus with actions to menu bar |
Static method for launching the default web browser and loading ViSiAnnoT ReadTheDocs documentation |
Attributes:
(QtWidgets.QWidget) Container of the parent window |
|
( |
|
( |
-
class
visiannot.visiannot.components.MenuBar.MenuBar(win_parent, lay_parent)[source]¶ Bases:
PyQt5.QtWidgets.QMenuBarMenu 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.-
addMenuWithActions(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
openDocumentation()[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