8.5.1.1. pymodaq_gui.examples.action_manager_example module

Action Manager Menu and Toolbar Example

Demonstrates the menu and toolbar capabilities of ActionManager including: - Creating submenus within submenus (multiple levels) - Adding actions to nested submenus - Creating and managing multiple toolbars - Adding actions to both menus and toolbars - Using icons for both actions and submenus - Shared actions across menus and toolbars

class pymodaq_gui.examples.action_manager_example.ActionManagerExample[source]

Bases: QMainWindow, ActionManager

Example application demonstrating nested menus and multiple toolbars with ActionManager

Methods

log_message(message)

Add message to status display

on_action_triggered(action_name)

Handle action triggered - display action info

setup_actions()

Create nested menu structure with actions and multiple toolbars

log_message(message)[source]

Add message to status display

on_action_triggered(action_name)[source]

Handle action triggered - display action info

setup_actions()[source]

Create nested menu structure with actions and multiple toolbars

pymodaq_gui.examples.action_manager_example.main()[source]

Run the example application