wx.lib.floatcanvas.Utilities.GUI.RubberBandBox¶
Class to provide a GUI Mode that makes a rubber band box that can be drawn on a Window
Class Hierarchy¶
Known Superclasses¶
wx.lib.floatcanvas.GUIMode.GUIBase
Methods Summary¶
Default class constructor. |
|
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)¶
Default class constructor.
- Parameters:
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
- OnLeftDown(self, event)¶
- OnLeftUp(self, event)¶
- OnMove(self, event)¶