Skip to content

RemoteGraphicsView.py : implement pickle protocol#2051

Merged
j9ac9k merged 1 commit intopyqtgraph:masterfrom
pijyoi:pickle_mouse
Oct 31, 2021
Merged

RemoteGraphicsView.py : implement pickle protocol#2051
j9ac9k merged 1 commit intopyqtgraph:masterfrom
pijyoi:pickle_mouse

Conversation

@pijyoi
Copy link
Copy Markdown
Contributor

@pijyoi pijyoi commented Oct 30, 2021

RemoteGraphicsView does manual serialization and deserialization of mouse events because not all the Qt objects are picklable and different Qt bindings have different degrees of pickability.
This PR reimplements the serialization and deserialization to make use of the Python pickle protocol. In particular, it makes the deserialization transparent to the Renderer class.

@j9ac9k
Copy link
Copy Markdown
Member

j9ac9k commented Oct 31, 2021

Love this diff @pijyoi definitely looks cleaner. Thanks for the PR!

@j9ac9k j9ac9k merged commit 76d9bc3 into pyqtgraph:master Oct 31, 2021
@pijyoi pijyoi deleted the pickle_mouse branch October 31, 2021 23:28
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