Package paramz :: Package core :: Module parentable :: Class Parentable
[hide private]
[frames] | no frames]

Class Parentable

source code


Enable an Object to have a parent.

Additionally this adds the parent_index, which is the index for the parent to look for in its parameter list.

Instance Methods [hide private]
 
__init__(self, *args, **kwargs)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
has_parent(self)
Return whether this parentable object currently has a parent.
source code
 
_parent_changed(self)
Gets called, when the parent changed, so we can adjust our inner attributes according to the new parent.
source code
 
_disconnect_parent(self, *args, **kw)
Disconnect this object from its parent
source code
 
_notify_parent_change(self)
Dont do anything if in leaf node
source code

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

Class Variables [hide private]
  _parent_ = None
hash(x)
  _parent_index_ = None
hash(x)
Properties [hide private]
  _highest_parent_
Gets the highest parent by traversing up to the root node of the hierarchy.

Inherited from object: __class__

Method Details [hide private]

__init__(self, *args, **kwargs)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)

Property Details [hide private]

_highest_parent_

Gets the highest parent by traversing up to the root node of the hierarchy.

Get Method:
unreachable._highest_parent_(self) - Gets the highest parent by traversing up to the root node of the hierarchy.