| Home | Trees | Indices | Help |
|
|---|
|
|
Tools are used to add interactive behavior to a View.
Tools can either not act on an event (None), just handle the event or grab the event and all successive events until the tool is done (e.g. on a button press/release).
The tools in this module are made to work properly in a ToolChain.
TextEditTool - for editing text on canvas items (that support it)
(context.view = view; context.grab() to grab, context.ungrab() to ungrab)
Version: $Revision: 2234 $
| Classes | |
|
ToolContext Special context for tools. |
|
| Tool | |
|
ToolChainContext ToolChainContext is a wrapper for the ToolContext. |
|
|
ToolChain A ToolChain can be used to chain tools together, for example HoverTool, HandleTool, SelectionTool. |
|
|
HoverTool Make the item under the mouse cursor the "hovered item". |
|
|
ItemTool ItemTool does selection and dragging of items. |
|
|
HandleTool Tool for moving handles around. |
|
| RubberbandTool | |
| PlacementTool | |
|
TextEditTool Demo of a text edit tool (just displays a text edit box at the cursor position. |
|
| Functions | |||
|
|||
| Variables | |
DEBUG_TOOL = False
|
|
DEBUG_TOOL_CHAIN = False
|
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0 on Mon Mar 03 08:52:21 2008 | http://epydoc.sourceforge.net |