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: develop fails test_disabled_list_box_is_greyed in the full suite, a dialog is drawn with an earlier dialog's style sheet #779
The Tests run of develop fails on all four platforms with one test only: tests/test_guifunc_primitives.py::test_disabled_list_box_is_greyed (assert ['#ffffff', '#ffffff'] == ['#ffffff', '#dce6ff']). It passes alone and fails in the full suite, so every open pull request shows failing tests.
Cause: Qt caches the parsed style sheet of a dialog by its memory address and drops it only when a polished dialog is destroyed. A dialog that was styled but never shown (build_listdlg2_dialog in an earlier test) leaves its sheet behind. A new dialog that gets the same address is drawn with that old sheet, which has no rule for a disabled list box.
Why the fix of [GUI] Grey a disabled list box #755 did not hold: it called dialog.style().unpolish(dialog). Qt's QStyleSheetStyle::unpolish returns at once for a widget that does not have the attribute WA_StyleSheet yet, which is the case of a fresh dialog.
No parallel PR opened, per the issue ("No other pull request is needed")
Research
PR #778 changes src/eegprep/functions/guifunc/qt.py_apply_eeglab_style: it replaces the no-op dialog.style().unpolish(dialog) from #755 with dialog.ensurePolished() followed by a second setStyleSheet, which makes Qt drop the cached sheet. The diff matches the cause described in the issue.
Status of PR #778: lint, ruff/ty, docs, and base install pass. The test matrix (ubuntu/macOS/windows) and the EEGLAB Python backend check were still running when I checked. Handing off to PR #778. This issue closes automatically when it merges.
🤖 Fix ready in pull request #778. Its test jobs pass on macOS, Windows and Ubuntu (Python 3.12), where develop fails. The Ubuntu job with Python 3.13 was in_progress null when this was written. On #770 and #776 the only failing test is this one, on every platform. Merge #778 first. #770 and #776 then need develop merged into their branch once more (I do it as soon as #778 is in) for their checks to come back green. Not merged.
Status on November 27, 2026: Arno is asked to choose between the fix and removing the test.
His words, written before he knew the cause was found: "Okay, I would remove the test if it's unstable."
What was found since: the test does not fail at random. It fails every time on develop because a dialog can be drawn with the style sheet of an earlier dialog, which is a real display defect. Pull request [GUI] Parse the dialog style sheet afresh so a dialog never inherits another one's #778 fixes the cause in one file, and its tests pass on the four platforms.
Closed: pull request #805 (Fix the disabled list box style after a list selector closes), merged on November 28, 2026, fixed the cause on develop. The develop test run after it no longer fails test_disabled_list_box_is_greyed; the only failure left on develop is the Windows row-height test of #834, which pull request #835 addresses. Pull request #778 took another route to the same fix and will be reviewed as possibly redundant.
Activity
claude commentedon Nov 27, 2026
🤖 Plan:
agent/fix-stale-stylesheet), whose body saysFixes #779Research
PR #778 changes
src/eegprep/functions/guifunc/qt.py_apply_eeglab_style: it replaces the no-opdialog.style().unpolish(dialog)from #755 withdialog.ensurePolished()followed by a secondsetStyleSheet, which makes Qt drop the cached sheet. The diff matches the cause described in the issue.Status of PR #778: lint, ruff/ty, docs, and base install pass. The test matrix (ubuntu/macOS/windows) and the EEGLAB Python backend check were still running when I checked. Handing off to PR #778. This issue closes automatically when it merges.
arnodelorme commentedon Nov 27, 2026
🤖 Fix ready in pull request #778. Its test jobs pass on macOS, Windows and Ubuntu (Python 3.12), where develop fails. The Ubuntu job with Python 3.13 was in_progress null when this was written. On #770 and #776 the only failing test is this one, on every platform. Merge #778 first. #770 and #776 then need develop merged into their branch once more (I do it as soon as #778 is in) for their checks to come back green. Not merged.
arnodelorme commentedon Nov 27, 2026
Status on November 27, 2026: Arno is asked to choose between the fix and removing the test.
— orchestrator
arnodelorme commentedon Nov 29, 2026
Closed: pull request #805 (Fix the disabled list box style after a list selector closes), merged on November 28, 2026, fixed the cause on develop. The develop test run after it no longer fails
test_disabled_list_box_is_greyed; the only failure left on develop is the Windows row-height test of #834, which pull request #835 addresses. Pull request #778 took another route to the same fix and will be reviewed as possibly redundant.— orchestrator