Skip to content

add setSymbol method#3180

Merged
j9ac9k merged 3 commits intopyqtgraph:masterfrom
kevinanewman:TargetItem-setsymbol-method
Jan 25, 2025
Merged

add setSymbol method#3180
j9ac9k merged 3 commits intopyqtgraph:masterfrom
kevinanewman:TargetItem-setsymbol-method

Conversation

@kevinanewman
Copy link
Copy Markdown
Contributor

@kevinanewman kevinanewman commented Oct 31, 2024

Add setSymbol method to TargetItem

Allows symbol to be updated after TargetItem is created, which can be used to create user-editable or dynamic targets.

Updated error message for unknown string type symbols.

@j9ac9k
Copy link
Copy Markdown
Member

j9ac9k commented Nov 1, 2024

Thanks for the PR, this LGTM; I just had a couple of nit-picks which I commented.

@kevinanewman
Copy link
Copy Markdown
Contributor Author

Latest commit available with updates per your feedback, thank you!

@j9ac9k
Copy link
Copy Markdown
Member

j9ac9k commented Jan 25, 2025

Thanks @kevinanewman for updating the PR, sorry it's taken me so long to get to this!

@j9ac9k j9ac9k merged commit ed5edf4 into pyqtgraph:master Jan 25, 2025
@kevinanewman kevinanewman deleted the TargetItem-setsymbol-method branch January 30, 2025 14:54
j9ac9k pushed a commit to j9ac9k/pyqtgraph that referenced this pull request Mar 25, 2025
* add setSymbol method

* Update docstring and reformat KeyError string
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