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

Class SubLayer_UpDown

source code

object --+    
         |    
  SubLayer --+
             |
            SubLayer_UpDown

The little up and down buttons, such as next to a number.

Instance Methods [hide private]
 
__init__(self, up=<__builtin__.function object>, down=<__builtin__.function object>, color=('toolspace.layer.fg', (0.1, 1, 0.1, 0.9)), *args, **kw)
See also: SubLayer.__init__
source code
 
__action(self, x, y, e) source code
 
__mouse_move(self, x, y, e) source code
 
__exit(self) source code
 
draw(self, context, w, h, appearance)
Override this method to paint the SubLayer.
source code

Inherited from SubLayer: button_press, button_release, invalidate, pt_in_rect, set_actual_x, set_actual_y, set_cBG, set_h, set_layer, set_tooltip, set_w, set_x, set_y

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

Instance Variables [hide private]

Inherited from SubLayer: OnChangeTooltip, OnHideTooltip, OnInvalidate, action, border, cBG, cBorder, enter, exit, h, invalid, mouse_drag, mouse_move, rq_h, rq_w, scroll, w, x, y

Properties [hide private]
  up
  down

Inherited from SubLayer: layer, tooltip

Inherited from object: __class__

Method Details [hide private]

__init__(self, up=<__builtin__.function object>, down=<__builtin__.function object>, color=('toolspace.layer.fg', (0.1, 1, 0.1, 0.9)), *args, **kw)
(Constructor)

source code 

See also: SubLayer.__init__

Parameters:
  • up - when the up button is clicked, calls up()
  • down - when the down button is clicked, calls down()
Overrides: object.__init__

draw(self, context, w, h, appearance)

source code 

Override this method to paint the SubLayer. Don't forget to call SubLayer.draw(context, w, h, appearance).

Overrides: SubLayer.draw
(inherited documentation)

Property Details [hide private]

up

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

down

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