Button¶
from acron.touch import Button
- class Button(action: str, caption: str, wide: bool = False)¶
Bases:
objectOne of the button column’s buttons: a rect, a caption, and an action.
Every button adds its action to
heldand fires the edge on the way down, and deletes it on the way up — which makes a momentary button and a latched one the same object, and one flag is enough.Inheritance diagram
digraph inheritance9a3741d07e { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "Button" [URL="acron.touch.Button.html#acron.touch.Button",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="One of the button column's buttons: a rect, a caption, and an action."]; }- action¶
- caption¶
- h¶
- on¶
- w¶
- wide¶
- x¶
- y¶