-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor config group widget to config groups editor
- Loading branch information
1 parent
ade5f2f
commit 9058d63
Showing
6 changed files
with
56 additions
and
48 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters