Skip to content

fix: blockSignal=True in Parameter.setValue()#3305

Merged
j9ac9k merged 1 commit intopyqtgraph:masterfrom
cogsy23:parameter-blocksig
Nov 15, 2025
Merged

fix: blockSignal=True in Parameter.setValue()#3305
j9ac9k merged 1 commit intopyqtgraph:masterfrom
cogsy23:parameter-blocksig

Conversation

@cogsy23
Copy link
Copy Markdown
Contributor

@cogsy23 cogsy23 commented May 6, 2025

This is a change to the Parameter.setValue() API.

The behaviour of blockSignal isn't specified, but other uses appear to use None/True. The previous implementation allowed to block a specific signal, but I'd expect most would want to block all signals.

This could be renamed to blockSignals to be more consistent with restoreState().

Both blockSignal and blockSignals could be included as kwargs to maintain both behaviours.

The behavior of blockSignal isn't specified, but other uses appear to
use None/True.  The previous implementation allowed to block a specific
signal, but I'd expect most would want to block all signals.
@j9ac9k
Copy link
Copy Markdown
Member

j9ac9k commented Nov 15, 2025

Ahh yeah, checking for None only seems silly. Thanks for the PR @cogsy23

@j9ac9k j9ac9k merged commit ba74cad into pyqtgraph:master Nov 15, 2025
1 check 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.

2 participants