parameters: (self, parent, canvas)
return_statement: return
docstring: Initialization
          built-in methods
          - drag_zoom(self, event): triggered during holding the mouse and moving
docstring_summary: Initialization
          built-in methods
          - drag_zoom(self, event): triggered during holding the mouse and moving
docstring_tokens: Initialization built - in methods - drag_zoom ( self event ) : triggered during holding the mouse and moving
function: def __init__(self, parent, canvas):
          """ Initialization
          built-in methods
          - drag_zoom(self, event): triggered during holding the mouse and moving
          """
          NavigationToolbar2.__init__(self, canvas, canvas)
  
          # parent
          self._myParent = parent
          # tool bar mode
          self._myMode = MyNavigationToolbar.NAVIGATION_MODE_NONE
  
          # connect the events to parent
          self.home_button_pressed.connect(self._myParent.evt_toolbar_home)
          self.canvas_zoom_released.connect(self._myParent.evt_zoom_released)
  
          return
function_tokens: def __init__ ( self , parent , canvas ) : NavigationToolbar2 . __init__ ( self , canvas , canvas ) # parent self . _myParent = parent # tool bar mode self . _myMode = MyNavigationToolbar . NAVIGATION_MODE_NONE # connect the events to parent self . home_button_pressed . connect ( self . _myParent . evt_toolbar_home ) self . canvas_zoom_released . connect ( self . _myParent . evt_zoom_released ) return