parameters: (self, event)
docstring: Respond to mouse events in the main drawing panel
  
              How we respond depends on the currently selected tool.
docstring_summary: Respond to mouse events in the main drawing panel
docstring_tokens: Respond to mouse events in the main drawing panel
function: def onMouseEvent(self, event):
          """ Respond to mouse events in the main drawing panel
  
              How we respond depends on the currently selected tool.
          """
          if self.curTool is None: return
  
          # Translate event into canvas coordinates and pass to current tool
          origx,origy = event.X, event.Y
          pt = self._getEventCoordinates(event)
          event.m_x = pt.x
          event.m_y = pt.y
          handled = self.curTool.onMouseEvent(self,event)
          event.m_x = origx
          event.m_y = origy
  
          if handled: return
  
          # otherwise handle it ourselves
          if event.RightDown():
              self.doPopupContextMenu(event)
function_tokens: def onMouseEvent ( self , event ) : if self . curTool is None : return # Translate event into canvas coordinates and pass to current tool origx , origy = event . X , event . Y pt = self . _getEventCoordinates ( event ) event . m_x = pt . x event . m_y = pt . y handled = self . curTool . onMouseEvent ( self , event ) event . m_x = origx event . m_y = origy if handled : return # otherwise handle it ourselves if event . RightDown ( ) : self . doPopupContextMenu ( event )