Repository navigation
[GUI] Spread the main window startup text over the frame - #721
Conversation
There was a problem hiding this comment.
If your organization's extra usage balance is empty, an organization admin can add extra usage credits at claude.ai/admin-settings/usage. If its monthly spend limit was reached, an admin can raise it on the same page. If neither applies, contact Anthropic support.
Once extra usage is available, someone with write access to this repository can comment @claude review on this pull request to trigger a review.
|
Claude finished @arnodelorme's task in 1m 6s —— View job Code review
BlockingNone. Important
Nits
Test gapsNone. The check that the last label's bottom edge is below 90% of the stack height should fail with the old EEGLAB parity notesNone. The change brings the startup state closer to EEGLAB, which spreads its text rows over the full figure height. |
| def test_startup_text_fills_the_frame_height(self): | ||
| os.environ.setdefault("QT_QPA_PLATFORM", "offscreen") | ||
| from eegprep.functions.guifunc.main_window import build_main_window |
There was a problem hiding this comment.
Important: This test builds a Qt window but doesn't skip when PySide6 is missing. PySide6 is only in the optional gui extra, so on an install without that extra this test errors instead of skipping. Every other build_main_window test guards against this, for example
eegprep/tests/test_gui_main_window.py
Lines 1304 to 1308 in 3d899aa
Fix: move this test into QtMainWindowTests and make its first line:
pytest.importorskip("PySide6")Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
The bot found that test_startup_text_fills_the_frame_height builds a Qt window without skipping when PySide6 is missing, and that the comment about "equal shares" of the height was misleading because the labels have a fixed height. Commit 48eda04 moves the test into QtMainWindowTests with pytest.importorskip("PySide6") as its first line and rewrites the comment to say that the spare height goes between the rows. The layout itself is unchanged. In tests/test_gui_main_window.py, 47 tests pass offscreen. The 3 ICLabel async tests fail locally in exactly the same way on the previous head, because of the local ICLabel setup, and they pass in CI. — orchestrator |



The startup lines of the main window share the frame height, as EEGLAB spreads its text rows over the figure, instead of being stacked at the top above an empty band. The continuous and epoched states already filled the frame and are unchanged, pixel for pixel.
Captures (EEGLAB, before, after) and tests: https://github.com/adelorme-assistant/project_eegprep/blob/main/reports/pr-699/issue-699_before_after.pdf (Word: https://github.com/adelorme-assistant/project_eegprep/blob/main/reports/pr-699/issue-699_before_after.docx)
Fixes #699
Part of #744