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

Class Tool_DropDown

source code

object --+        
         |        
      Tool --+    
             |    
OverlayRgnTool --+
                 |
                Tool_DropDown

Displays a drop-down menu (from SubLayer_DropDown) and handles mouse clicks.

Instance Methods [hide private]
 
__init__(self, sublayer, prev_tool)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
onOverlay(self, context, w, h) source code
 
onRelease(self, x, y, e) source code

Inherited from OverlayRgnTool: next_rgn, onKeyPress, onRoll, prev_rgn

Inherited from Tool: activate, deactivate, onActivate, onDblClick, onDeactivate, onDrag, onKeyRelease, onNeedPopup, onPress, onScroll

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

Instance Variables [hide private]

Inherited from OverlayRgnTool: prev_tool, rgn, rgns, start_x, start_y

Inherited from Tool: cursor, layers, space

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, sublayer, prev_tool)
(Constructor)

source code 

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

Parameters:
  • sublayer - SubLayer_DropDown
  • prev_tool - Tool to reinstate when the menu is done; prior value of sublayer.layer.space.tool
Overrides: object.__init__

onOverlay(self, context, w, h)

source code 
Overrides: Tool.onOverlay

onRelease(self, x, y, e)

source code 
Overrides: Tool.onRelease