Qudi
Public Member Functions | Public Attributes | List of all members
config_gui.menu.ModMenu Class Reference

This class represents the module selection menu. More...

Inheritance diagram for config_gui.menu.ModMenu:
Inheritance graph
[legend]
Collaboration diagram for config_gui.menu.ModMenu:
Collaboration graph
[legend]

Public Member Functions

def __init__ (self, modules)
 Create new menu from module tree. More...
 
def build_submenu (self, menu_item, modpath, module)
 Create a submenu from a module list, a module path and a module definition. More...
 
def hasModule (self, modpath)
 Return whther module with given path is present. More...
 
def getModule (self, modpath)
 Get module corresponding to module path. More...
 

Public Attributes

 modules
 
 hwmenu
 
 logicmenu
 
 guimenu
 
 hwmenuitems
 
 logicmenuitems
 
 guimenuitems
 

Detailed Description

This class represents the module selection menu.

Constructor & Destructor Documentation

◆ __init__()

def config_gui.menu.ModMenu.__init__ (   self,
  modules 
)

Create new menu from module tree.

Parameters
dictm: module tree

Member Function Documentation

◆ build_submenu()

def config_gui.menu.ModMenu.build_submenu (   self,
  menu_item,
  modpath,
  module 
)

Create a submenu from a module list, a module path and a module definition.

Parameters
dictmlist: module list dict
strmodpath: Qudi module path
dictmoddef: module definition dict

◆ getModule()

def config_gui.menu.ModMenu.getModule (   self,
  modpath 
)

Get module corresponding to module path.

str modpath: Qudi module path

Returns
ModuleObject: module object

◆ hasModule()

def config_gui.menu.ModMenu.hasModule (   self,
  modpath 
)

Return whther module with given path is present.

Parameters
strmodpath: Qudi module path
Returns
bool: wether a module has the given path

The documentation for this class was generated from the following file: