Table Of Contents

Previous topic

GUI

Next topic

FloatCanvas

This Page

phoenix_title RubberBandBox

Class to provide a GUI Mode that makes a rubber band box that can be drawn on a Window


class_hierarchy Inheritance Diagram

Inheritance diagram for class RubberBandBox

Inheritance diagram of RubberBandBox


method_summary Methods Summary

__init__ To initialize:
OnLeftDown  
OnLeftUp  
OnMove  

api 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)