Skip to content

Commit cfccfed

Browse files
committed
fix simulated mouse event
1 parent a7fe935 commit cfccfed

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

plotpy/tests/unit/utils.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,13 +95,12 @@ def mouse_event_at_relative_plot_pos(
9595
"""
9696
plot = win.manager.get_plot()
9797
canvas = plot.canvas()
98-
canvas_pos, glob_pos = rel_pos_to_canvas_pos(plot, relative_xy)
98+
canvas_pos, _ = rel_pos_to_canvas_pos(canvas, relative_xy)
9999

100100
for type_ in click_types:
101101
mouse_event = QG.QMouseEvent(
102102
type_,
103103
canvas_pos,
104-
# glob_pos,
105104
QC.Qt.MouseButton.LeftButton,
106105
QC.Qt.MouseButton.LeftButton,
107106
mod,

0 commit comments

Comments
 (0)