artview.components.Menu

class artview.components.Menu(pathDir=None, filename=None, Vradar=None, Vgrid=None, Vfilelist=None, mode=['Radar'], name='Menu', parent=None)[source]

Bases: artview.core.core.Component

Class to display the MainMenu.

__init__(pathDir=None, filename=None, Vradar=None, Vgrid=None, Vfilelist=None, mode=['Radar'], name='Menu', parent=None)[source]

Initialize the class to create the interface.

Parameters:

[Optional] :

pathDir : string

Input directory path to open. If None user current directory

filename : string, False or None

File to open as first. None will open file dialog. False will open no file.

Vradar : Variable instance

Radar signal variable. A value of None initializes an empty Variable.

Vgrid : Variable instance

Grid signal variable. A value of None initializes an empty Variable.

mode : list

List with strings “Radar” or “Grid”. Determine which type of files will be open

name : string

Menu name.

parent : PyQt instance

Parent instance to associate to menu. If None, then Qt owns, otherwise associated with parent PyQt instance.

Notes

This class creates the main application interface and creates a menubar for the program.

Methods

Menu.AdvanceFileSelect
Menu.CreateMenu
Menu.LaunchApp
Menu.addComponent
Menu.addFileAdvanceMenu
Menu.addFileMenu
Menu.addLayoutMenu
Menu.addLayoutMenuItem
Menu.addLayoutWidget
Menu.addMenuAction
Menu.addMenuSeparator
Menu.addPluginMenuItem
Menu.change_mode
Menu.keyPressEvent
Menu.menus
Menu.removeLayoutMenuItem
Menu.removeLayoutWidget
Menu.removeTab
Menu.saveCurrent
Menu.saveGrid
Menu.saveRadar
Menu.showFileDialog
Menu.startComponent
Menu.subMenus

Attributes

Vfilelist = None

see Shared Variables Table

Vgrid = None

see Shared Variables Table

Vradar = None

see Shared Variables Table