MouseButton¶
from acron.core import MouseButton
- class MouseButton¶
Bases:
This class is just used as a convenient namespace for grouping all of these handy functions that return buttons which map to standard mouse buttons.
Inheritance diagram
digraph inheritanceb55e968081 { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "DTOOL_SUPER_BASE" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style=""]; "MouseButton" [URL="acron.core.MouseButton.html#acron.core.MouseButton",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "MouseButton" [arrowsize=0.75,style=""]; }- __init__()¶
- static button()¶
Returns the
ButtonHandleassociated with the particular numbered mouse button (zero-based), if there is one, orButtonHandle.none()if there is not.
- static five()¶
Returns the
ButtonHandleassociated with the fifth mouse button.
- static four()¶
Returns the
ButtonHandleassociated with the fourth mouse button.
- static is_mouse_button()¶
Returns true if the indicated
ButtonHandleis a mouse button, false if it is some other kind of button.
- static one()¶
Returns the
ButtonHandleassociated with the first mouse button.
- static three()¶
Returns the
ButtonHandleassociated with the third mouse button.
- static two()¶
Returns the
ButtonHandleassociated with the second mouse button.
- static wheel_down()¶
Returns the
ButtonHandlegenerated when the mouse wheel is rolled one notch downwards.
- static wheel_left()¶
Returns the
ButtonHandlegenerated when the mouse is scrolled to the left. Usually, you’ll only find the horizontal scroll on laptops.
- static wheel_right()¶
Returns the
ButtonHandlegenerated when the mouse is scrolled to the right. Usually, you’ll only find the horizontal scroll on laptops.
- static wheel_up()¶
Returns the
ButtonHandlegenerated when the mouse wheel is rolled one notch upwards.