batgrl.gadgets.behaviors#
Inheritable gadget behaviors.
A Behavior is an inheritable class that modifies a gadget.
It should be inherited before the base gadget, e.g.,:
class MovableImage(Movable, Image): ...
Where Movable is a Behavior and Image is the base gadget. In this case, MovableImage is now an Image that can be moved around the terminal by clicking and dragging.
Module Attributes
A Behavior is an inheritable class that modifies a gadget. |
- batgrl.gadgets.behaviors.Behavior#
A Behavior is an inheritable class that modifies a gadget.
It should be inherited before the base gadget, e.g.,:
class MovableImage(Movable, Image): ...
Where Movable is a Behavior and Image is the base gadget. In this case, MovableImage is now an Image that can be moved around the terminal by clicking and dragging.
Modules
Button behavior for a gadget. |
|
Focus behavior for a gadget. |
|
Grabbable behavior for a gadget. |
|
Movable behavior for a gadget. |
|
Movable children behavior for a gadget. |
|
Themable behavior for gadgets. |
|
Toggle button behavior for a gadget. |