qubx :: toolspace :: Tool :: Class Tool
[hide private]
[frames] | no frames]

Class Tool

source code

object --+
         |
        Tool
Known Subclasses:

Receives mouse events from a ToolSpace. Can draw an overlay.

Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
activate(self, space) source code
 
deactivate(self, space) source code
 
onActivate(self) source code
 
onDeactivate(self) source code
 
onOverlay(self, context, w, h) source code
 
onPress(self, x, y, e) source code
 
onRelease(self, x, y, e) source code
 
onDblClick(self, x, y, e) source code
 
onDrag(self, x, y, e) source code
 
onRoll(self, x, y, e) source code
 
onScroll(self, x, y, e, amount) source code
 
onKeyPress(self, event) source code
 
onKeyRelease(self, event) source code
 
onNeedPopup(self, x, y, e) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Instance Variables [hide private]
  space
when active, the ToolSpace; otherwise None
  cursor
gdk.Cursor or None
  layers
list of Layers to add to space when active
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

Instance Variable Details [hide private]

space

when active, the ToolSpace; otherwise None
Get Method:
unreachable(self)