Skip to content

Commit

Permalink
tests/unit/utils.py: fix deprecated call to QMouseEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreRaybaut committed Sep 10, 2024
1 parent cfb0b2f commit b568421
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plotpy/tests/unit/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ def mouse_event_at_relative_plot_pos(
mouse_event = QG.QMouseEvent(
type_,
canvas_pos,
canvas.mapToGlobal(canvas_pos.toPoint()),
btn,
btn,
mod,
Expand Down

0 comments on commit b568421

Please sign in to comment.