
 
       wx.lib.floatcanvas.NavCanvas.NavCanvas¶
  wx.lib.floatcanvas.NavCanvas.NavCanvas¶NavCanvas encloses a
FloatCanvas in a Panel and
adds a Navigation toolbar.
 Methods Summary¶
 Methods Summary¶| __init__ | Default class constructor. | 
| AddToolbarModeButtons | Add the mode buttons to the tool bar. | 
| AddToolbarZoomButton | Add the zoom button to the tool bar. | 
| BuildToolbar | Build the default tool bar, can be over-ridden in a subclass to add | 
| HideShowHack | Hack to hide and show button on toolbar to get around OS-X bug on | 
| SetMode | Event handler to set the mode. | 
| ZoomToFit | Event handler to zoom to fit. | 
 Class API¶
 Class API¶NavCanvas(wx.Panel)¶NavCanvas encloses a
FloatCanvas in a Panel and
adds a Navigation toolbar.
__init__(self, parent, id = wx.ID_ANY, size = wx.DefaultSize, **kwargs)¶Default class constructor.
| Parameters: | 
|---|
AddToolbarModeButtons(self, tb, Modes)¶Add the mode buttons to the tool bar.
| Parameters: | 
 | 
|---|
AddToolbarZoomButton(self, tb)¶Add the zoom button to the tool bar.
| Parameters: | tb (ToolBar) – the toolbar instance | 
|---|
BuildToolbar(self)¶Build the default tool bar, can be over-ridden in a subclass to add extra tools etc.
HideShowHack(self)¶Hack to hide and show button on toolbar to get around OS-X bug on wxPython2.8 on OS-X
SetMode(self, event)¶Event handler to set the mode.
ZoomToFit(self, event)¶Event handler to zoom to fit.