Skip to content

[GUI] Restore pop_chanevent blank rows and align its notes - #773

Merged
arnodelorme merged 2 commits into
developfrom
agent/20261127-fix-771
Nov 27, 2026
Merged

arnodelorme merged 2 commits into
developfrom
agent/20261127-fix-771

Conversation

@claude

@claude claude Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

Share a dialog's height among its rows only when the height is fixed, so pop_chanevent (size=(833, None)) gets back the two blank rows lost in #722. Remove the leading spaces of the second (set = yes) note so both notes start at the same x. Extends test_chanevent_labels_fit_their_column.

Fixes #771

🤖 Generated with Claude Code

Share the dialog height among rows only when the height is fixed, so
pop_chanevent (size=(833, None)) keeps its spacer rows. Drop the leading
spaces of the second (set = yes) note.

Fixes #771

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@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 27, 2026 •

Copy link
Copy Markdown
Contributor Author

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


Code review

  • Overall assessment: No issues found. _rows_share_height now returns False when the dialog's height (size[1]) is None. In that case pop_chanevent, the only dialog that passes size=(833, None), uses fixed-height rows. Its two spacer rows get a fixed gap from addSpacing instead of an addStretch that collapsed to zero height. That brings the blank rows back. _add_buttons adds its trailing stretch and _apply_spec_size keeps the dialog's natural height, so nothing else in the layout changes. Dialogs with a fixed height behave as before.
  • Highest-risk area: The shared Qt layout code in qt.py. I searched the package and only pop_chanevent passes a None height, so the change reaches no other dialog.
  • Merge recommendation: Safe to merge.

Blocking

None.

Important

None.

Nits

None.

Test gaps

None. The extended test_chanevent_labels_fit_their_column checks both changes: the blank-row gap (tops[1] - tops[0] > 1.8 * (tops[2] - tops[1])) and that the two (set = yes) notes start at the same x.

EEGLAB parity notes

None. The repo doesn't include pop_chanevent.m, so I compared against the existing dialog definition and tests instead.

Checked for correctness bugs, EEGLAB parity, data structure compatibility, tests for the changed behavior, and CLAUDE.md/AGENTS.md compliance. I didn't run the tests.

@arnodelorme

Copy link
Copy Markdown
Collaborator

🤖 Captures: review: the change is the one of issue #771 and it is right. Checked on jamming (the tests of the file pass, 67 passed) and with the native Mac style. No commit added. The check Ruff and ty fails because of develop itself (merge #766 first). The matching EEGLAB change is sccn/eeglab#996. The checkbox rows that are still taller on the Mac are issue #772.

jamming: EEGLAB before and after its own change, EEGPrep develop, EEGPrep after

jamming: EEGLAB before and after its own change, EEGPrep develop, EEGPrep after

Native Mac style (grabbed without showing a window): develop and after

Native Mac style (grabbed without showing a window): develop and after

@arnodelorme
arnodelorme merged commit 2eb1c1f into develop Nov 27, 2026
8 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.

pop_chanevent window: the two blank rows are gone since #722, and one note is shifted

1 participant