Skip to content

Comments

fix: Pass mmcore instance to StageWidget children#102

Merged
tlambert03 merged 5 commits intopymmcore-plus:mainfrom
gselzer:pass-mmcore-to-child-widgets
Aug 19, 2025
Merged

fix: Pass mmcore instance to StageWidget children#102
tlambert03 merged 5 commits intopymmcore-plus:mainfrom
gselzer:pass-mmcore-to-child-widgets

Conversation

@gselzer
Copy link
Contributor

@gselzer gselzer commented Aug 18, 2025

Necessary to work with non-CMMCorePlus objects passed as the core object (e.g. a ClientCMMCorePlus from pymmcore-remote)

@gselzer gselzer requested a review from tlambert03 August 18, 2025 22:18
@gselzer gselzer changed the title Pass mmcore instance to StageWidget children fix: Pass mmcore instance to StageWidget children Aug 18, 2025
yield gui


def test_main_window_with_existing_core(qtbot: QtBot, qapp: QApplication) -> None:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would this test actually have caught this error? we don't actually instantiate much inside the initial of the main window... this test feels vaguely related by not quite that useful. if you agree, go ahead and remove this test and we can merge without the test

@tlambert03 tlambert03 merged commit 717109e into pymmcore-plus:main Aug 19, 2025
3 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants