pymmcore_gui.actions.core_actions
¶
Defines actions that act on the global CMMCore instance.
Functions
| Name | Description |
|---|---|
load_demo_config |
Load the demo configuration. |
load_sys_config_dialog |
Open a dialog to load a system configuration. |
save_sys_config_dialog |
Open a dialog to save a system configuration. |
snap_image |
Snap an image, stopping sequence if running. |
toggle_live |
Start or stop live mode. |
Attributes
| Name | Description |
|---|---|
load_config_action |
|
load_demo_action |
|
snap_action |
|
toggle_live_action |
Functions¶
snap_image
¶
snap_image(action: QCoreAction, checked: bool) -> None
Snap an image, stopping sequence if running.
Used by:
-
API Reference
pymmcore-gui
pymmcore_guiactionscore_actions Attributessnap_action
toggle_live
¶
toggle_live(action: QCoreAction, checked: bool) -> None
Start or stop live mode.
Used by:
-
API Reference
pymmcore-gui
pymmcore_guiactionscore_actions Attributestoggle_live_action
load_demo_config
¶
load_demo_config(action: QCoreAction, checked: bool) -> None
Load the demo configuration.
Used by:
-
API Reference
pymmcore-gui
pymmcore_guiactionscore_actions Attributesload_demo_action
load_sys_config_dialog
¶
load_sys_config_dialog(action: QCoreAction, checked: bool) -> None
Open a dialog to load a system configuration.
save_sys_config_dialog
¶
save_sys_config_dialog(action: QCoreAction, checked: bool) -> None
Open a dialog to save a system configuration.
Used by:
-
API Reference
pymmcore-gui
pymmcore_guiactionscore_actions Attributesload_config_action
Attributes¶
snap_action
¶
snap_action = ActionInfo(
key=CoreAction.SNAP,
text="Snap Image",
shortcut="Ctrl+K",
auto_repeat=True,
icon="mdi-light:camera",
on_triggered=snap_image,
on_created=_init_snap_image,
)
toggle_live_action
¶
toggle_live_action = ActionInfo(
key=CoreAction.TOGGLE_LIVE,
text="Toggle Live",
shortcut="Ctrl+L",
auto_repeat=True,
icon="mdi:video-outline",
checkable=True,
on_triggered=toggle_live,
on_created=_init_toggle_live,
)
load_demo_action
¶
load_demo_action = ActionInfo(
key=CoreAction.LOAD_DEMO,
text="Load Demo Configuration",
on_triggered=load_demo_config,
)
load_config_action
¶
load_config_action = ActionInfo(
key="pymmcore_gui.save_config",
text="Save System Configuration...",
on_triggered=save_sys_config_dialog,
)
Re-exports¶
These can also be imported from this module, but each is documented under its shortest import path (linked below).
| Name | Description |
|---|---|
CoreAction |
Actions that act on the global CMMCore instance. |