RubberBandBox
Class to provide a GUI Mode that makes a rubber band box that can be drawn on a Window
Inheritance Diagram
Inheritance diagram for class RubberBandBox
Methods Summary
Class API
-
class RubberBandBox(GUIMode.GUIBase)
Class to provide a GUI Mode that makes a rubber band box that can be drawn on a Window
Methods
-
__init__(self, CallBack, Tol=5)
To initialize:
RubberBandBox(CallBack, Tol=5)
- CallBack: is the method you want called when the mouse is
- released. That method will be called, passing in a rect
parameter, where rect is: (Point, WH) of the rect in
world coords.
- Tol: The tolerance for the smallest rectangle allowed. defaults
- to 5. In pixels
Attributes:
CallBack: The callback function.
-
OnLeftDown(self, event)
-
OnLeftUp(self, event)
-
OnMove(self, event)