original_docstring: Send mouse event if position is within self._original_widget.
docstring: Send mouse event if position is within self._original_widget.
docstring_tokens: Send mouse event if position is within self . _original_widget .
code: def mouse_event(self, size, event, button, x, y, focus):
          """Send mouse event if position is within self._original_widget."""
          if not hasattr(self._original_widget,'mouse_event'):
              return False
          left, right = self.padding_values(size, focus)
          maxcol = size[0]
          if x < left or x >= maxcol-right: 
              return False
          maxvals = (maxcol-left-right,)+size[1:] 
          return self._original_widget.mouse_event(maxvals, event, button, x-left, y,
              focus)
code_tokens: def mouse_event ( self , size , event , button , x , y , focus ) : if not hasattr ( self . _original_widget , 'mouse_event' ) : return False left , right = self . padding_values ( size , focus ) maxcol = size [ 0 ] if x < left or x >= maxcol - right : return False maxvals = ( maxcol - left - right , ) + size [ 1 : ] return self . _original_widget . mouse_event ( maxvals , event , button , x - left , y , focus )
short_docstring: Send mouse event if position is within self._original_widget.
short_docstring_tokens: Send mouse event if position is within self . _original_widget .
comment: """Send mouse event if position is within self._original_widget."""