Skip to content

Fix GraphicsScene ValueError in mouseReleaseEvent#2605

Merged
j9ac9k merged 1 commit intopyqtgraph:masterfrom
j9ac9k:graphics-scene-mouse-warning
Feb 10, 2023
Merged

Fix GraphicsScene ValueError in mouseReleaseEvent#2605
j9ac9k merged 1 commit intopyqtgraph:masterfrom
j9ac9k:graphics-scene-mouse-warning

Conversation

@j9ac9k
Copy link
Copy Markdown
Member

@j9ac9k j9ac9k commented Feb 10, 2023

This PR addresses the issue where during a mouse release event, the mouse event that was present in a list is not present after GraphicsScene.sigMouseClicked is fired and along the way there is a call to QApplication.processEvents()

While this is not a pyqtgraph bug, numerous users have run into an issue here, and the nature of this error is not severe enough to emit an exception, so instead, pyqtgraph emits a warning with a message that should notify the developer to look for extra calls to processEvents()

Fixes #2580
Fixes #2117

@j9ac9k j9ac9k merged commit d08e43b into pyqtgraph:master Feb 10, 2023
@j9ac9k j9ac9k deleted the graphics-scene-mouse-warning branch February 10, 2023 06:23
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.

GraphicsScene.mouseReleaseEvent exception when clicking a plot

1 participant