Skip to content

Commit 7a06293

Browse files
committed
bsdf
1 parent e721ded commit 7a06293

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pyqtgraph/examples/contextMenu.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
view = win.addViewBox()
2020

2121
# 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')
22+
zoom1 = view.getMenu().addAction('Zoom to box 1')
23+
zoom2 = view.getMenu().addAction('Zoom to box 2')
2424

2525
# define callbacks for these actions
2626
def zoomTo1():

0 commit comments

Comments
 (0)