a = self.addAction(self._icon('home.svg'), 'Home', self.home)
a = self.addAction(self._icon('home.png'), 'Home', self.home)
a.setToolTip('Reset original view')
a = self.addAction(self._icon('back.svg'), 'Back', self.back)
a = self.addAction(self._icon('back.png'), 'Back', self.back)
a.setToolTip('Back to previous view')
a = self.addAction(self._icon('forward.svg'), 'Forward', self.forward)
a = self.addAction(self._icon('forward.png'), 'Forward', self.forward)
a.setToolTip('Forward to next view')
self.addSeparator()
a = self.addAction(self._icon('move.svg'), 'Pan', self.pan)
a = self.addAction(self._icon('move.png'), 'Pan', self.pan)
a.setToolTip('Pan axes with left mouse, zoom with right')
a = self.addAction(self._icon('zoom_to_rect.svg'), 'Zoom', self.zoom)
a = self.addAction(self._icon('zoom_to_rect.png'), 'Zoom', self.zoom)
a.setToolTip('Zoom to rectangle')
self.addSeparator()
a = self.addAction(self._icon('subplots.png'), 'Subplots',
self.configure_subplots)
a.setToolTip('Configure subplots')
if figureoptions is not None:
a = self.addAction(self._icon("qt4_editor_options.svg"),
a = self.addAction(self._icon("qt4_editor_options.png"),
'Customize', self.edit_parameters)
a.setToolTip('Edit curves line and axes parameters')
a = self.addAction(self._icon('filesave.svg'), 'Save',
a = self.addAction(self._icon('filesave.png'), 'Save',
self.save_figure)
a.setToolTip('Save the figure')
self.buttons = {}
Activity
ruidc commented on Jun 14, 2011
ie.:
@@ -420,32 +420,32 @@ class NavigationToolbar2QT( NavigationToolbar2, QtGui.QToolBar ):
return QtGui.QIcon(os.path.join(self.basedir, name))
def _init_toolbar(self): self.basedir = os.path.join(matplotlib.rcParams[ 'datapath' ],'images')a = self.addAction(self._icon('home.svg'), 'Home', self.home)a = self.addAction(self._icon('home.png'), 'Home', self.home) a.setToolTip('Reset original view')a = self.addAction(self._icon('back.svg'), 'Back', self.back)a = self.addAction(self._icon('back.png'), 'Back', self.back) a.setToolTip('Back to previous view')a = self.addAction(self._icon('forward.svg'), 'Forward', self.forward)a = self.addAction(self._icon('forward.png'), 'Forward', self.forward) a.setToolTip('Forward to next view') self.addSeparator()a = self.addAction(self._icon('move.svg'), 'Pan', self.pan)a = self.addAction(self._icon('move.png'), 'Pan', self.pan) a.setToolTip('Pan axes with left mouse, zoom with right')a = self.addAction(self._icon('zoom_to_rect.svg'), 'Zoom', self.zoom)a = self.addAction(self._icon('zoom_to_rect.png'), 'Zoom', self.zoom) a.setToolTip('Zoom to rectangle') self.addSeparator() a = self.addAction(self._icon('subplots.png'), 'Subplots', self.configure_subplots) a.setToolTip('Configure subplots') if figureoptions is not None:a = self.addAction(self._icon("qt4_editor_options.svg"),a = self.addAction(self._icon("qt4_editor_options.png"), 'Customize', self.edit_parameters) a.setToolTip('Edit curves line and axes parameters')a = self.addAction(self._icon('filesave.svg'), 'Save',a = self.addAction(self._icon('filesave.png'), 'Save', self.save_figure) a.setToolTip('Save the figure') self.buttons = {}ruidc commented on Jun 14, 2011
oops, superceded by #143 that has pull request (sry did not know this was the behaviour)