def __init__(self,canvas_,parentframe_,parclass):
self.parclass = parclass
# images: Python34\Lib\site-packages\matplotlib\mpl-data\images
self.toolitems = (
('Home', 'original scale', 'home', 'home'),
#('Back', 'consectetuer adipiscing elit', 'back', 'back'),
#('Forward', 'sed diam nonummy nibh euismod', 'forward', 'forward'),
(None, None, None, None),
('Pan', 'pan', 'move', 'pan'),
(None, None, None, None),
('Zoom', 'zoom', 'zoom_to_rect', 'zoom'),
(None, None, None, None),
('Print','Print','printer','onPrint'),
(None, None, None, None),
('PDF','PDF','pdf','onPDF'),
(None, None, None, None),
#('Subplots', 'putamus parum claram', 'subplots', 'configure_subplots'),
('Save', 'save to file', 'filesave', 'save_figure'),
(None, None, None, None),
('ShowPage1', 'show page 1', 'page1', 'onShowPage1'),
(None, None, None, None),
('ShowPage2', 'show page 2', 'page2', 'onShowPage2'),
(None, None, None, None),
('NoVS', 'no VS', 'novs', 'onNoVS'),
(None, None, None, None),
(None, None, None, None),
('Cursor','Cursor','cursor','onCursor'),
(None, None, None, None),
)
NavigationToolbar.__init__(self,canvas_,parentframe_,False)
评论列表
文章目录