pymmcore_widgets.config_presets
¶
Widgets related to configuration groups and presets.
Classes
| Name | Description |
|---|---|
ConfigPresetsTable |
2D Table for viewing configuration presets. |
GroupsPresetFinder |
Widget that switches between column and tree view for config groups. |
Classes¶
ConfigPresetsTable
¶
Bases: QWidget
2D Table for viewing configuration presets.
Adds buttons to transpose, duplicate, and remove presets.
With all the presets as columns and the device/property pairs as rows. (unless transposed).
To use, call setModel with a QConfigGroupsModel, and then
setGroup with the name or index of the group you want to view.
create_from_core
classmethod
¶
create_from_core(
core: CMMCorePlus, parent: QWidget | None = None
) -> ConfigPresetsTable
Create a PresetsTable from a CMMCorePlus instance.
setAvailableDevices
¶
setAvailableDevices(devices: Sequence[Device]) -> None
Set the available devices for property selection dialogs.
setUndoStack
¶
Set the undo stack for remove/duplicate operations.
GroupsPresetFinder
¶
Bases: QStackedWidget
Widget that switches between column and tree view for config groups.
This mimics the macOS Finder's behavior with two main views: - Column view: Groups/presets/settings side by side (index 0) - Tree view: Hierarchical structure of groups and presets (index 1)
setUndoStack
¶
Set the undo stack and configure delegates for undo/redo.
setModel
¶
Attach model to all views and give them one shared selection model.
showColumnView
¶
Switch to column view mode (groups and presets side by side).
setCurrentGroupAsChannelGroup
¶
Set the currently selected group as the channel group in the model.
setCurrentGroup
¶
setCurrentGroup(group: str) -> QModelIndex
Set the currently selected group by name.
Returns the index of the selected group, or an invalid index if not found.
setCurrentPreset
¶
Set the currently selected preset by group and preset name.
Returns the index of the selected preset, or an invalid index if not found.
Re-exports¶
These can also be imported from this module, but each is documented under its shortest import path (linked below).
| Name | Description |
|---|---|
ConfigGroupsEditor |
Editor for configuration groups and their presets. |
ConfigGroupsTree |
A tree widget that displays configuration groups. |
GroupPresetTableWidget |
Table of all configuration groups, to view and set their presets. |
ObjectivesPixelConfigurationWidget |
A Widget to define the pixel size configurations using the objective device. |
PixelConfigurationWidget |
A Widget to define the pixel size configurations. |