diff options
Diffstat (limited to 'silx/gui/plot/test/testScatterMaskToolsWidget.py')
-rw-r--r-- | silx/gui/plot/test/testScatterMaskToolsWidget.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/silx/gui/plot/test/testScatterMaskToolsWidget.py b/silx/gui/plot/test/testScatterMaskToolsWidget.py index 0342c8f..a446911 100644 --- a/silx/gui/plot/test/testScatterMaskToolsWidget.py +++ b/silx/gui/plot/test/testScatterMaskToolsWidget.py @@ -38,7 +38,7 @@ import numpy from silx.gui import qt from silx.test.utils import temp_dir from silx.utils.testutils import ParametricTestCase -from silx.gui.test.utils import getQToolButtonFromAction +from silx.gui.utils.testutils import getQToolButtonFromAction from silx.gui.plot import PlotWindow, ScatterMaskToolsWidget from .utils import PlotWidgetTestCase @@ -89,10 +89,10 @@ class TestScatterMaskToolsWidget(PlotWidgetTestCase, ParametricTestCase): self.mouseMove(plot, pos=(0, 0)) self.mouseMove(plot, pos=pos0) - self.mousePress(plot, qt.Qt.LeftButton, pos=pos0) + self.mouseClick(plot, qt.Qt.LeftButton, pos=pos0) self.mouseMove(plot, pos=(0, 0)) self.mouseMove(plot, pos=pos1) - self.mouseRelease(plot, qt.Qt.LeftButton, pos=pos1) + self.mouseClick(plot, qt.Qt.LeftButton, pos=pos1) def _drawPolygon(self): """Draw a star polygon in the plot""" @@ -110,7 +110,9 @@ class TestScatterMaskToolsWidget(PlotWidgetTestCase, ParametricTestCase): self.mouseMove(plot, pos=[0, 0]) for pos in star: self.mouseMove(plot, pos=pos) + self.qapp.processEvents() self.mouseClick(plot, qt.Qt.LeftButton, pos=pos) + self.qapp.processEvents() def _drawPencil(self): """Draw a star polygon in the plot""" |