You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
eeglab main window: text squeezed in the startup state, use the full width as in EEGLAB #699
Arno commented the File menu report of #696 (EEGPrep versus EEGLAB, side-by-side captures) on November 26, 2026; this issue is one of his comments, with one pull request to address it.
Window: Main window, state startup
What to do: Make the text of the main window (startup state, then the continuous and epoched states) use the full width of the window as EEGLAB does.
Done when: a pull request on a branch agent/issue-<n> of develop, with captures before and after the change next to EEGLAB's, in a Word file and the same content as a PDF (rule 14), linked from the pull request. Arno merges.
The windows are opened on jamming (MATLAB R2025b and EEGPrep under Xvfb, /mnt/v1/arno/menutest_probe shows how), never on Arno's Mac in the daytime. Capture EEGLAB's window, EEGPrep's before and EEGPrep's after; put the three side by side. Run the tests of the functions touched (pytest) before opening the pull request.
Implement + capture: blocked here, needs a human or an agent on jamming (see below)
Research
The main window content is built from fixed-size Qt labels stacked at the top of the frame. Every label uses a fixed 13 px Courier font, the startup lines are packed with zero spacing, and addStretch(1) pushes all spare height below the text. The QGridLayout data panel works the same way. EEGLAB places its rows with normalized uicontrol positions spread over the whole figure, so its text fills the frame in both directions and grows with the window. EEGPrep's text stays the same size in the upper-left part of the 520×380 window.
Drop the addStretch(1) and give each startup row and each data-grid row equal stretch, so the lines spread evenly over the frame height like EEGLAB's normalized rows.
Scale the label font in a resizeEvent of the central widget: pick the largest pixel size where the longest startup line (or the widest name/value pair) fits the frame's inner width, with 13 px as the floor. Text then fills the width at 520×380 and still fills it after a resize.
Re-check the 30/14 px frame margins against EEGLAB's BORDEREXT/BORDERINT values in eeglab.m.
This is roughly 30–50 changed lines in main_window.py, plus a test asserting that the longest startup line takes up at least about 90% of the stack width at the default size.
Why there is no PR: the definition of done needs EEGLAB/before/after captures from jamming (MATLAB R2025b + Xvfb) and a Word + PDF report. This CI runner has no MATLAB, the vendored src/eegprep/eeglab/ checkout is empty, and outbound fetches of eeglab.m are blocked, so I can't take the EEGLAB reference values (font size, borders, row spacing) or produce the captures. Run the main_window, main_window_continuous and main_window_epoched cases in tools/visual_parity/cases.json on jamming to tune steps 1–3.
changed the title [-]Main window: text squeezed in the startup state, use the full width as in EEGLAB[/-][+]eeglab main window: text squeezed in the startup state, use the full width as in EEGLAB[/+]on Nov 27, 2026
Activity
claude commentedon Nov 26, 2026
🤖 Plan:
Research
The main window content is built from fixed-size Qt labels stacked at the top of the frame. Every label uses a fixed 13 px Courier font, the startup lines are packed with zero spacing, and
addStretch(1)pushes all spare height below the text. TheQGridLayoutdata panel works the same way. EEGLAB places its rows with normalizeduicontrolpositions spread over the whole figure, so its text fills the frame in both directions and grows with the window. EEGPrep's text stays the same size in the upper-left part of the 520×380 window.Relevant code
main_window.py#L87-L88: fixed 520×380 window, 460×340 minimummain_window.py#L146-L175: frame margins 30/14 px, startup labels packed at top,addStretch(1)main_window.py#L178-L201: continuous/epoched grid, vertical spacing 0, no row stretchmain_window.py#L520-L538: fixedfont-size: 13px/16pxstylesheetmain_window.py#L566-L568: labels useQSizePolicy.Ignored/FixedProposed Fix
addStretch(1)and give each startup row and each data-grid row equal stretch, so the lines spread evenly over the frame height like EEGLAB's normalized rows.resizeEventof the central widget: pick the largest pixel size where the longest startup line (or the widest name/value pair) fits the frame's inner width, with 13 px as the floor. Text then fills the width at 520×380 and still fills it after a resize.BORDEREXT/BORDERINTvalues ineeglab.m.This is roughly 30–50 changed lines in
main_window.py, plus a test asserting that the longest startup line takes up at least about 90% of the stack width at the default size.Why there is no PR: the definition of done needs EEGLAB/before/after captures from jamming (MATLAB R2025b + Xvfb) and a Word + PDF report. This CI runner has no MATLAB, the vendored
src/eegprep/eeglab/checkout is empty, and outbound fetches ofeeglab.mare blocked, so I can't take the EEGLAB reference values (font size, borders, row spacing) or produce the captures. Run themain_window,main_window_continuousandmain_window_epochedcases intools/visual_parity/cases.jsonon jamming to tune steps 1–3.arnodelorme commentedon Nov 26, 2026
Pull request: #721 ([GUI] Spread the main window startup text over the frame). The startup lines now share the frame height as in EEGLAB (two lines of code). The continuous and epoched states already filled the frame and are identical before and after. The font was not changed. Captures of the three states and tests (65 passed): https://github.com/adelorme-assistant/project_eegprep/blob/main/reports/pr-699/issue-699_before_after.pdf (Word file next to it). Arno merges.
[-]Main window: text squeezed in the startup state, use the full width as in EEGLAB[/-][+]eeglab main window: text squeezed in the startup state, use the full width as in EEGLAB[/+]