code: def pan_zoom_high_equalarea(self,event):
          
          if event.LeftIsDown() or event.ButtonDClick():
              return
          elif self.high_EA_setting == "Zoom":
              self.high_EA_setting = "Pan"
              try: self.toolbar.pan('off')
              except TypeError: pass
          elif self.high_EA_setting == "Pan":
              self.high_EA_setting = "Zoom"
              try: self.toolbar.zoom()
              except TypeError: pass
          else:
              self.high_EA_setting = "Zoom"
              try: self.toolbar.zoom()
              except TypeError: pass
docs: Uses the toolbar for the canvas to change the function from zoom to pan or pan to zoom
          @param: event -> the wx.MouseEvent that triggered this funciton