Skip to content

Make parameter tree read-only values selectable and copiable#2311

Merged
j9ac9k merged 3 commits intopyqtgraph:masterfrom
ardiloot:selectable-param-values
Jun 5, 2022
Merged

Make parameter tree read-only values selectable and copiable#2311
j9ac9k merged 3 commits intopyqtgraph:masterfrom
ardiloot:selectable-param-values

Conversation

@ardiloot
Copy link
Copy Markdown
Contributor

If ParameterTree is used with read-only parameters then it makes sense that it would be possible to select and copy the value of the parameter. Right now the value is not selectable or copiable in any way.

@j9ac9k j9ac9k requested a review from ntjess May 26, 2022 22:56
@j9ac9k
Copy link
Copy Markdown
Member

j9ac9k commented May 29, 2022

Hi @ardiloot

Thanks for the PR. I left an in-line comment explaining why this is failing on PyQt6, and showed you what adjustment you need to make to make it work for all the bindings pyqtgraph supports.

Thanks!

@ntjess
Copy link
Copy Markdown
Contributor

ntjess commented Jun 1, 2022

I played with this for a bit, seems ok to me! My only thought is that some widgets (i.e. calendar or other things without a display label) won't get these benefits, but subitems are a bit hard to generalize and that can always come later.

@j9ac9k
Copy link
Copy Markdown
Member

j9ac9k commented Jun 5, 2022

Merging, thanks for the PR @ardiloot !

@j9ac9k j9ac9k merged commit d60eae9 into pyqtgraph:master Jun 5, 2022
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.

3 participants