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
supergui: on the Mac a checkbox row is taller than an edit row and the box starts 2 pixels left #772
On the Mac, a row with a checkbox is 26 pixels high where a row with an edit box is 20, and the checkbox starts 2 pixels to the left of the edit boxes of the same column. Seen in pop_chanevent and pop_export on develop (11743a2), measured with the native Mac style. On Linux the rows are already even.
Cause: the Mac style lays a checkbox or a radio button out by a rectangle larger than the widget itself.
Fix, shared widget code (guifunc/qt.py, _build_widget): set Qt.WA_LayoutUsesWidgetRect on every checkbox and radio button, so the layout uses the widget's own rectangle. Two lines.
Effect, measured on all 127 dialog renderings: on Linux nothing changes (127 identical). With the Mac style 31 dialogs change by a few pixels, and four change size: pop_export 317 to 300 pixels high, pop_chanevent 282 to 254, pop_loadcnt 168 to 161, tf_cycle_calc 617 to 619 wide.
No automatic test can see it: the test machines draw with the Fusion style, the Mac one included (offscreen). The evidence is the before and after capture with the Mac style.
The captures before and after are in the pull request and in #745.
🤖 Ready in pull request #774 (opened by the automatic agent, reviewed, right as it is). Measured on all 127 dialog renderings: nothing changes on Linux, and with the native Mac style 31 dialogs move by a few pixels and four change size. Captures in #774 and in #745.
Activity
claude commentedon Nov 27, 2026
🤖 Plan:
_build_widgetinsrc/eegprep/functions/guifunc/qt.py#L302-L307creates checkboxes/radios with the default style layout rect; no overlapping open PR.Qt.WA_LayoutUsesWidgetRecton checkbox and radio widgets./pre-commit.py --fix, ruff OK (GUI tests could not load PySide6 locally: missing libEGL; relying on CI)arnodelorme commentedon Nov 27, 2026
🤖 Ready in pull request #774 (opened by the automatic agent, reviewed, right as it is). Measured on all 127 dialog renderings: nothing changes on Linux, and with the native Mac style 31 dialogs move by a few pixels and four change size. Captures in #774 and in #745.