Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: New ConfigGroupsEditor widget. #307

Open
wants to merge 35 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
006a0c5
wip
tlambert03 Jul 3, 2024
c66daa7
style(pre-commit.ci): auto fixes [...]
pre-commit-ci[bot] Jul 4, 2024
f1dc029
updates
tlambert03 Jul 4, 2024
a604b14
Merge branch 'optical-config2' of https://github.com/tlambert03/pymmc…
tlambert03 Jul 4, 2024
4fec0f9
good state
tlambert03 Jul 4, 2024
fd8bf4e
lint
tlambert03 Jul 4, 2024
19e1770
fix deprecations
tlambert03 Jul 4, 2024
2c37a99
hide group combo by default
tlambert03 Jul 4, 2024
fc7f4a8
Merge branch 'main' into optical-config2
tlambert03 Jul 6, 2024
179f5f9
future
tlambert03 Jul 6, 2024
5d56ff0
some improvements
tlambert03 Jul 8, 2024
1d27f5e
fixes
tlambert03 Jul 10, 2024
3f4c122
example
tlambert03 Jul 19, 2024
9263d79
with group
tlambert03 Jul 19, 2024
d092dd4
working groups
tlambert03 Jul 19, 2024
c9f674f
wip
tlambert03 Jul 21, 2024
3a90d0b
Merge branch 'main' into optical-config2
tlambert03 Oct 11, 2024
e881e4d
merging
tlambert03 Oct 11, 2024
444397f
add basic expert concet
tlambert03 Oct 11, 2024
70f6ff7
Merge branch 'optical-config2' of https://github.com/tlambert03/pymmc…
tlambert03 Oct 12, 2024
3248631
Merge branch 'main' into optical-config2
tlambert03 Oct 12, 2024
2b50b45
style(pre-commit.ci): auto fixes [...]
pre-commit-ci[bot] Oct 12, 2024
95a0fbd
clean unique key list
tlambert03 Oct 13, 2024
10397c7
wip
tlambert03 Oct 13, 2024
83eb3ed
updates and styles
tlambert03 Oct 13, 2024
90943ed
renames
tlambert03 Oct 14, 2024
ade5f2f
updates
tlambert03 Oct 14, 2024
9058d63
Refactor config group widget to config groups editor
tlambert03 Oct 14, 2024
e4deaf5
modify header
tlambert03 Oct 14, 2024
331d317
Merge branch 'main' into optical-config2
tlambert03 Jan 21, 2025
d713c48
style(pre-commit.ci): auto fixes [...]
pre-commit-ci[bot] Jan 21, 2025
02b3124
test: start on tests
tlambert03 Jan 21, 2025
1cce9c3
Merge branch 'optical-config2' of https://github.com/tlambert03/pymmc…
tlambert03 Jan 21, 2025
cb4d4eb
Merge branch 'main' into optical-config2
tlambert03 Jan 21, 2025
4aac44f
test: add failing test
tlambert03 Jan 21, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions examples/config_groups_editor.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
from pymmcore_plus import CMMCorePlus
from qtpy.QtWidgets import QApplication, QPushButton
from rich import print

from pymmcore_widgets import ConfigGroupsEditor

core = CMMCorePlus().instance()
core.loadSystemConfiguration()

app = QApplication([])

ocd = ConfigGroupsEditor.create_from_core(core)
ocd.resize(1080, 860)
ocd.setCurrentGroup("Channel")
ocd.show()

btn = QPushButton("Print Current Data")
btn.clicked.connect(lambda: print(ocd.data()))
ocd.layout().children()[0].addWidget(btn) # Add button to the layout

app.exec()
2 changes: 2 additions & 0 deletions src/pymmcore_widgets/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"ChannelGroupWidget",
"ChannelTable",
"ChannelWidget",
"ConfigGroupsEditor",
"ConfigWizard",
"ConfigurationWidget",
"DefaultCameraExposureWidget",
Expand Down Expand Up @@ -45,6 +46,7 @@

from ._install_widget import InstallWidget
from .config_presets import (
ConfigGroupsEditor,
GroupPresetTableWidget,
ObjectivesPixelConfigurationWidget,
PixelConfigurationWidget,
Expand Down
2 changes: 2 additions & 0 deletions src/pymmcore_widgets/config_presets/__init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
"""Widgets related to configuration groups and presets."""

from ._config_groups_editor import ConfigGroupsEditor
from ._group_preset_widget._group_preset_table_widget import GroupPresetTableWidget
from ._objectives_pixel_configuration_widget import ObjectivesPixelConfigurationWidget
from ._pixel_configuration_widget import PixelConfigurationWidget

__all__ = [
"ConfigGroupsEditor",
"GroupPresetTableWidget",
"ObjectivesPixelConfigurationWidget",
"PixelConfigurationWidget",
Expand Down
Loading
Loading