Run when a mouse button is pressed while the cursor is over the frame. For further details, see the example under OnClick.

Signature:

OnMouseDown(self, "button")

Arguments:

  • self - Reference to the widget for which the script was run (frame)
  • button - Name of the mouse button responsible for the click action (string)
    • Button4
    • Button5
    • LeftButton
    • MiddleButton
    • RightButton