Commit fc134118 authored by Damien Naudet's avatar Damien Naudet

work around new silx plot api.

parent 10a3d14c
......@@ -579,32 +579,50 @@ class XsocsPlot2D(PlotWindow):
menu.addAction(action)
# save to file action
try:
action = self.getSaveAction()
except AttributeError:
action = self.saveAction
action.setIconVisibleInMenu(True)
menu.addAction(action)
# print action
try:
action = self.getPrintAction()
except AttributeError:
action = self.printAction
action.setIconVisibleInMenu(True)
menu.addAction(action)
# screenshot action
try:
action = self.getCopyAction()
except AttributeError:
action = self.copyAction
action.setIconVisibleInMenu(True)
menu.addAction(action)
# grid action
try:
action = self.getGridAction()
except AttributeError:
action = self.gridAction
action.setIconVisibleInMenu(True)
menu.addAction(action)
# crosshair action
try:
action = self.getCrosshairAction()
except AttributeError:
action = self.crosshairAction
action.setIconVisibleInMenu(True)
menu.addAction(action)
# pan action
try:
action = self.getPanWithArrowKeysAction()
except AttributeError:
action = self.panWithArrowKeysAction
action.setIconVisibleInMenu(True)
menu.addAction(action)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment