Skip to content

Commit

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

0 comments on commit c7f671e

Please sign in to comment.