We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 93a4b9d commit 39a7d13Copy full SHA for 39a7d13
plotpy/tests/unit/utils.py
@@ -77,13 +77,13 @@ def mouse_event_at_relative_plot_pos(
77
relative_xy[0] * size.width(),
78
relative_xy[1] * size.height(),
79
)
80
- canva_pos = QC.QPointF(pos_x, pos_y).toPoint()
81
- glob_pos = QC.QPointF(canvas.mapToGlobal(canva_pos))
+ canvas_pos = QC.QPointF(pos_x, pos_y)
+ glob_pos = QC.QPointF(canvas.mapToGlobal(canvas_pos.toPoint()))
82
83
for type_ in click_types:
84
mouse_event_press = QG.QMouseEvent(
85
type_,
86
- canva_pos,
+ canvas_pos,
87
glob_pos,
88
QC.Qt.MouseButton.LeftButton,
89
0 commit comments