pymmcore_gui.actions
¶
Actions: the commands behind pymmcore-gui's menus, toolbars and dock widgets.
Submodules
| Name | Description |
|---|---|
core_actions |
Defines actions that act on the global CMMCore instance. |
widget_actions |
Defines actions that toggle/create singleton widgets. |
Classes
| Name | Description |
|---|---|
ActionKey |
A Key representing an action in the GUI. |
QCoreAction |
QAction that can act on a CMMCorePlus instance. |
WidgetActionInfo |
Subclass to set default values for WidgetAction. |
Classes¶
ActionKey
¶
A Key representing an action in the GUI.
This is subclassed in core_actions, widget_actions, etc. to provide a unique key for each action.
Subclassed by:
-
API Reference
pymmcore-gui
pymmcore_gui Classes
WidgetActionInfo
¶
Bases: ActionInfo
Subclass to set default values for WidgetAction.
Referenced by:
- User Guide Applications pymmcore-gui Using pymmcore-gui Launching from Python Adding your own widget
-
API Reference
pymmcore-gui
pymmcore_gui ClassesActionInfowidget_actions
QCoreAction
¶
QCoreAction(
mmc: CMMCorePlus,
info: ActionInfo | None = None,
parent: QObject | None = None,
)
Bases: QAction
QAction that can act on a CMMCorePlus instance.
Returned by:
-
API Reference
pymmcore-gui
pymmcore_gui ClassesActionInfoto_qaction
apply_info
¶
apply_info(info: ActionInfo) -> None
Apply settings from a CoreActionInfo object to the QAction.
Re-exports¶
These can also be imported from this module, but each is documented under its shortest import path (linked below).
| Name | Description |
|---|---|
ActionInfo |
Information for creating a QCoreAction. |
CoreAction |
Actions that act on the global CMMCore instance. |
WidgetAction |
Widget Actions toggle/create singleton widgets. |