We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e721ded commit 7a06293Copy full SHA for 7a06293
1 file changed
pyqtgraph/examples/contextMenu.py
@@ -19,8 +19,8 @@
19
view = win.addViewBox()
20
21
# add two new actions to the ViewBox context menu:
22
-zoom1 = view.menu.addAction('Zoom to box 1')
23
-zoom2 = view.menu.addAction('Zoom to box 2')
+zoom1 = view.getMenu().addAction('Zoom to box 1')
+zoom2 = view.getMenu().addAction('Zoom to box 2')
24
25
# define callbacks for these actions
26
def zoomTo1():
0 commit comments