Skip to content

Commit b568421

Browse files
committed
tests/unit/utils.py: fix deprecated call to QMouseEvent
1 parent cfb0b2f commit b568421

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

plotpy/tests/unit/utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ def mouse_event_at_relative_plot_pos(
162162
mouse_event = QG.QMouseEvent(
163163
type_,
164164
canvas_pos,
165+
canvas.mapToGlobal(canvas_pos.toPoint()),
165166
btn,
166167
btn,
167168
mod,

0 commit comments

Comments
 (0)