Module component :: Class Container
[hide private]
[frames] | no frames]

Class Container

source code

object --+    
         |    
 Component --+
             |
            Container

Base class for containers.

Instance Methods [hide private]
 
canHaveChild(self, component)
True if the current component can have child of given type.
source code
 
isSizer(self)
If this container manages children positions and sizes.
source code
 
requireImplicit(self, node)
If there are implicit nodes for this particular node.
source code
 
getTreeNode(self, node)
Some containers may hide some internal elements.
source code
 
getTreeOrImplicitNode(self, node)
Return topmost child (implicit if exists).
source code
 
appendChild(self, parentNode, node)
Append child node.
source code
 
insertBefore(self, parentNode, node, nextNode)
Insert node before nextNode.
source code
 
insertAfter(self, parentNode, node, prevNode)
Insert node after prevNode.
source code
 
removeChild(self, parentNode, node)
Remove node and the implicit node (if present).
source code
 
copyObjects(self, srcNode, dstNode) source code
 
replaceChild(self, parentNode, newNode, oldNode)
Replace oldNode by newNode keeping relevant attributes.
source code
 
getChildObject(self, node, obj, index)
Get index'th child of a tested interface element.
source code

Inherited from Component: __cmp__, __init__, __repr__, addAttribute, addEvents, addExStyles, addStyles, canBeReplaced, copyAttributes, getAttribute, getRect, getTreeImageId, getTreeText, isContainer, makeTestWin, setParamClass, setSpecial

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __str__

Class Variables [hide private]

Inherited from Component: genericEvents, genericExStyles, genericStyles, hasName, isTopLevel, renameDict, windowAttributes

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

canHaveChild(self, component)

source code 

True if the current component can have child of given type.

This function is redefined by container classes.
Overrides: Component.canHaveChild
(inherited documentation)

appendChild(self, parentNode, node)

source code 
Append child node. Can be overriden to create implicit nodes.

insertBefore(self, parentNode, node, nextNode)

source code 
Insert node before nextNode. Can be overriden to create implicit nodes.

insertAfter(self, parentNode, node, prevNode)

source code 
Insert node after prevNode. Can be overriden to create implicit nodes.

removeChild(self, parentNode, node)

source code 
Remove node and the implicit node (if present). Return top-level removed child.