Skip to content

Block signals when setting an attribute directly - #151

Merged
berendkleinhaneveld merged 2 commits into
masterfrom
fix-pyside-interactivity
Jan 20, 2026
Merged

Block signals when setting an attribute directly#151
berendkleinhaneveld merged 2 commits into
masterfrom
fix-pyside-interactivity

Conversation

@berendkleinhaneveld

Copy link
Copy Markdown
Collaborator

No description provided.

@berendkleinhaneveld
berendkleinhaneveld marked this pull request as ready for review January 20, 2026 21:31
@berendkleinhaneveld
berendkleinhaneveld merged commit c47f295 into master Jan 20, 2026
8 checks passed
@berendkleinhaneveld
berendkleinhaneveld deleted the fix-pyside-interactivity branch January 20, 2026 21:32
Comment thread collagraph/renderers/pyside/objects/qobject.py
berendkleinhaneveld added a commit that referenced this pull request Jan 21, 2026
  - Add try/finally blocks to ensure signals are always unblocked after
    errors in qobject, standarditem, treewidgetitem, and treewidget
  - Add exception handling to PySideRenderer interface methods (insert,
    remove, set_attribute, remove_attribute, add/remove_event_listener)
    that logs errors but continues execution
  - create_element logs and re-raises since there's no fallback
  - Add test_pyside_resilience.py with tests for error handling
  - Update test_removing_attribute_not_supported to expect logged errors

  See PR #151 discussion and issue #153 for context.
berendkleinhaneveld added a commit that referenced this pull request Jan 22, 2026
- Add try/finally blocks to ensure signals are always unblocked after
    errors in qobject, standarditem, treewidgetitem, and treewidget
  - Add exception handling to PySideRenderer interface methods (insert,
    remove, set_attribute, remove_attribute, add/remove_event_listener)
    that logs errors but continues execution
  - create_element logs and re-raises since there's no fallback
  - Add test_pyside_resilience.py with tests for error handling
  - Update test_removing_attribute_not_supported to expect logged errors

  See PR #151 discussion and issue #153 for context.
berendkleinhaneveld added a commit that referenced this pull request Jan 27, 2026
This release includes the following features:

* Support for template refs (#140)
* Hot reloading of components (#146)

And the following fixes and improvements:

* Prevent unnecessary remounts of elements (#152)
* Remove the need for a wrapping template element around dynamic slot content (#147)
* Keep elements ordered properly (#155 , #156)
* [PySide] Improve interaction with PySide elements (#151)
* [PySide] Improve resilience of PySide in light of exceptions (#154)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants