We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5b7708e commit 93a4b9dCopy full SHA for 93a4b9d
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
- canvas_pos = QC.QPointF(pos_x, pos_y)
81
- glob_pos = QC.QPointF(canvas.mapToGlobal(canvas_pos))
+ canva_pos = QC.QPointF(pos_x, pos_y).toPoint()
+ glob_pos = QC.QPointF(canvas.mapToGlobal(canva_pos))
82
83
for type_ in click_types:
84
mouse_event_press = QG.QMouseEvent(
85
type_,
86
- canvas_pos,
+ canva_pos,
87
glob_pos,
88
QC.Qt.MouseButton.LeftButton,
89
0 commit comments