Skip to content

[GUI] Remove the extra gap between pop_rmdat input rows - #829

Closed
claude[bot] wants to merge 1 commit into
developfrom
agent/20261128-fix-822
Closed

claude[bot] wants to merge 1 commit into
developfrom
agent/20261128-fix-822

Conversation

@claude

@claude claude Bot commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

The pop_rmdat dialog split its fixed 221 px height between its two input rows only, which opened an empty row between event types and time limits. A trailing blank row, matching the one EEGLAB's inputgui adds above OK, now takes its share of that height. Adds a Qt layout regression test.

Fixes #822

🤖 Generated with Claude Code

@claude claude Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

⚠️ Code review skipped — your organization has no extra usage available to pay for this review.

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

claude Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor Author

Claude finished @claude[bot]'s task in 39s —— View job


Code review

  • Pre-review gate (PR open, not a draft, no earlier review, checked-out HEAD 2cc85b4 matches the PR head)

  • Read AGENTS.md / CLAUDE.md

  • Review the diff and the Qt renderer's row layout (qt.py _rows_share_height, _row_stretch, _add_buttons)

  • Post review

  • Overall assessment: Looks good.

  • Highest-risk area: Qt row-height sharing for fixed-size dialogs (src/eegprep/functions/guifunc/qt.py:230-271).

  • Merge recommendation: Safe to merge.

Blocking

None.

Important

None.

Nits

None.

Test gaps

None. test_pop_rmdat_dialog_has_no_empty_row_between_event_types_and_time_limits checks what the user sees: the gap between the two edit boxes in a rendered dialog. Before this fix, _rows_share_height split the fixed 221 px height between only two rows, so the gap was wider than one edit box and the test would fail. The test skips when Qt is missing, using the same importorskip/qt_module pattern as the rest of this file.

EEGLAB parity notes

None. EEGLAB's inputgui.m adds an empty {} row above the OK/Cancel row, and supergui gives every row the same share of the window height. A geometry of ((2, 1, 1.2), (2, 1, 1.2), (1,)) with a ControlSpec("spacer") reproduces that. The renderer turns the blank row into content_layout.addStretch(...), so it takes its share of the height without adding a visible widget. Because the spacer has no tag, the inputgui result dict still contains only events, timelims and mode, and _run_gui is unaffected. The new code comment explains an EEGLAB parity detail, which AGENTS.md allows.

Checked for correctness bugs, EEGLAB parity, data structure compatibility, tests for the changed behavior, and AGENTS.md/CLAUDE.md compliance. I could not run the test suite because this session's permissions don't allow uv run pytest.

@arnodelorme

Copy link
Copy Markdown
Collaborator

🤖 Closed as a duplicate. Pull request #831 fixed the same issue (#822, the extra empty row in pop_rmdat) and was merged on November 28, 2026. It came with screen captures (6 pixels between the rows against 5 in EEGLAB) and lets the window take its height from its rows instead of a fixed size. — orchestrator

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.

pop_rmdat: remove the extra empty row between event types and time limits

1 participant