Skip to content

ENH: Allow plugin Components to specify themselves as hidden#6988

Merged
TEParsons merged 1 commit intopsychopy:devfrom
TEParsons:dev-enh-hidden-comps
Nov 28, 2024
Merged

ENH: Allow plugin Components to specify themselves as hidden#6988
TEParsons merged 1 commit intopsychopy:devfrom
TEParsons:dev-enh-hidden-comps

Conversation

@TEParsons
Copy link
Copy Markdown
Contributor

Meaning e.g. the old CedrusButtonBoxComponent can exist, and be recognised by Builder when opening an old experiment with one in, but isn't shown in the Components panel (so users don't end up using it instead of the new ButtonBoxComponent)

This could also be achieved by adding

from psychopy.app.builder import builder
builder.alwaysHidden.append("CedrusButtonBoxComponent")

but importing psychopy.app in a Component opens up a whole can of worms which I'd rather avoid if possible

@codecov
Copy link
Copy Markdown

codecov bot commented Nov 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 50.82%. Comparing base (c7f3ff7) to head (0b04eee).
Report is 8 commits behind head on dev.

Additional details and impacted files
@@           Coverage Diff           @@
##              dev    #6988   +/-   ##
=======================================
  Coverage   50.82%   50.82%           
=======================================
  Files         340      340           
  Lines       62318    62318           
=======================================
+ Hits        31674    31676    +2     
+ Misses      30644    30642    -2     
Components Coverage Δ
app ∅ <ø> (∅)
boilerplate ∅ <ø> (∅)
library ∅ <ø> (∅)
vm-safe library ∅ <ø> (∅)

@TEParsons TEParsons merged commit 355fc51 into psychopy:dev Nov 28, 2024
@TEParsons TEParsons deleted the dev-enh-hidden-comps branch November 29, 2024 10:06
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.

1 participant