qubx :: dataGTK :: QubData_SelTool :: Class QubData_SelTool
[hide private]
[frames] | no frames]

Class QubData_SelTool

source code

    object --+            
             |            
toolspace.Tool --+        
                 |        
  QubData_BaseTool --+    
                     |    
        QubData_HiTool --+
                         |
                        QubData_SelTool
Known Subclasses:

Handles mouse interactions that involve highlighting a region of data and acting immediately.

Instance Methods [hide private]
 
__init__(self, color=('dataGTK.sel', (0.3, 0.3, 1, 0.3)), action=<__builtin__.function object>, dblclick=<__builtin__.function object>, scroll=None, hires_keys=True)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
get_sel(self)
Returns the selection end-times (left, right) in order.
source code
 
get_sels(self) source code
 
onDblClick(self, x, y, e) source code
 
onDrag(self, x, y, e) source code
 
onKeyPress(self, event) source code
 
onOverlay(self, context, w, h) source code
 
onPress(self, x, y, e) source code
 
onRelease(self, x, y, e) source code
 
onScroll(self, x, y, e, o) source code

Inherited from toolspace.Tool: activate, deactivate, onActivate, onDeactivate, onKeyRelease, onNeedPopup, onRoll

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

Instance Variables [hide private]
  action
when the user drags across a time range and lets go, action(left, right) is called
  color
highlight fill COLORREF
  dblclick
when the user double-clicks, dblclick(x, y, event) is called
  sels
selection end-times, possibly out of order

Inherited from toolspace.Tool: cursor, layers, space

Properties [hide private]
  scroll

Inherited from object: __class__

Method Details [hide private]

__init__(self, color=('dataGTK.sel', (0.3, 0.3, 1, 0.3)), action=<__builtin__.function object>, dblclick=<__builtin__.function object>, scroll=None, hires_keys=True)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)

onDblClick(self, x, y, e)

source code 
Overrides: toolspace.Tool.onDblClick

onDrag(self, x, y, e)

source code 
Overrides: toolspace.Tool.onDrag

onKeyPress(self, event)

source code 
Overrides: toolspace.Tool.onKeyPress

onOverlay(self, context, w, h)

source code 
Overrides: toolspace.Tool.onOverlay

onPress(self, x, y, e)

source code 
Overrides: toolspace.Tool.onPress

onRelease(self, x, y, e)

source code 
Overrides: toolspace.Tool.onRelease

onScroll(self, x, y, e, o)

source code 
Overrides: toolspace.Tool.onScroll

Instance Variable Details [hide private]

action

when the user drags across a time range and lets go, action(left, right) is called
Get Method:
unreachable(self)
Set Method:
unreachable(self, x)

dblclick

when the user double-clicks, dblclick(x, y, event) is called
Get Method:
unreachable(self)
Set Method:
unreachable(self, x)

Property Details [hide private]

scroll

Get Method:
unreachable(self)
Set Method:
unreachable(self, x)