diff options
Diffstat (limited to 'examples/plotContextMenu.py')
-rw-r--r-- | examples/plotContextMenu.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/plotContextMenu.py b/examples/plotContextMenu.py index 5f02f5f..bd1ad87 100644 --- a/examples/plotContextMenu.py +++ b/examples/plotContextMenu.py @@ -87,7 +87,7 @@ class PlotWidgetWithContextMenu(PlotWidget): # plot area, and thus needs to be converted. plotArea = self.getWidgetHandle() globalPosition = plotArea.mapToGlobal(pos) - menu.exec_(globalPosition) + menu.exec(globalPosition) # Start the QApplication @@ -100,4 +100,4 @@ plot.addCurve(x, numpy.sin(x), legend='sin') # Show the widget and start the application plot.show() -app.exec_() +app.exec() |