Package mrv :: Package maya :: Package ui :: Module layout :: Class Layout
[hide private]
[frames] | no frames]

Class Layout

source code

         object --+                
                  |                
         basestring --+            
                      |            
                unicode --+        
                          |        
             object --+   |        
                      |   |        
            base.BaseUI --+        
                          |        
         object --+       |        
                  |       |        
interface.Interface --+   |        
                      |   |        
     interface.iDagItem --+        
                          |        
         object --+       |        
                  |       |        
   util.EventSender --+   |        
                      |   |        
     util.EventSenderUI --+        
                          |        
               base.NamedUI --+    
                              |    
              base.SizedControl --+
                                  |
                     object --+   |
                              |   |
           util.UIContainerBase --+
                                  |
                                 Layout

Structural base for all Layouts allowing general queries and name handling Layouts may track their children
Nested Classes [hide private]

Inherited from base.SizedControl: __metaclass__

Inherited from util.EventSenderUI (private): _UIEvent

Instance Methods [hide private]
 
__getitem__(self, key)
Implemented by UIContainerBase
source code
 
setParentActive(self)
Set the parent ( layout ) of this layout active - newly created items will be children of the parent layout
source code

Inherited from base.SizedControl: p_pma, p_popupMenuArray

Inherited from base.NamedUI: delete, exists, shortName, type, uiDeleted

Inherited from base.NamedUI (private): _parentString

Inherited from unicode: __add__, __contains__, __eq__, __format__, __ge__, __getattribute__, __getnewargs__, __getslice__, __gt__, __hash__, __le__, __len__, __lt__, __mod__, __mul__, __ne__, __rmod__, __rmul__, __sizeof__, __str__, capitalize, center, count, decode, encode, endswith, expandtabs, find, format, index, isalnum, isalpha, isdecimal, isdigit, islower, isnumeric, isspace, istitle, isupper, join, ljust, lower, lstrip, partition, replace, rfind, rindex, rjust, rpartition, rsplit, rstrip, split, splitlines, startswith, strip, swapcase, title, translate, upper, zfill

Inherited from unicode (private): _formatter_field_name_split, _formatter_parser

Inherited from interface.Interface: supports

Inherited from util.EventSender: clearAllEvents, sender

Inherited from util.UIContainerBase: __enter__, __exit__, add, childByName, clearChildren, deleteChild, listChildren, removeChild, setActive

Inherited from object: __delattr__, __reduce__, __reduce_ex__, __subclasshook__

    Properties
 
p_ca(self)
Returns: children of this layout
source code
 
p_childArray(self)
Returns: children of this layout
source code

Inherited from base.NamedUI: p_ex, p_exists

    Query Methods
 
children(self)
Returns: children of this layout
source code

Inherited from base.SizedControl: annotation, dimension, popupMenuArray

Inherited from base.NamedUI: childrenDeep, parent

Inherited from interface.iDagItem: basename, isPartOf, isRoot, isRootOf, parentDeep, root

    Edit Methods

Inherited from base.SizedControl: setAnnotation, setDimension, setFocus

    Overridden Methods
 
__init__(self, *args, **kwargs)
Initialize the layout
source code

Inherited from base.NamedUI: __new__, __repr__, __setattr__

    Iterators

Inherited from interface.iDagItem: iterParents

    Name Generation

Inherited from interface.iDagItem: fullChildName

Class Methods [hide private]

Inherited from util.EventSender: listEventNames

    Overridden Methods

Inherited from base.NamedUI (private): _exists

    Hierachy Handling

Inherited from base.NamedUI: activeParent

    Name Generation

Inherited from interface.iDagItem: addSep

Class Variables [hide private]
  _properties_ = "nch", "numberOfChildren"

Inherited from base.SizedControl: _events_, p_ann, p_annotation, p_dimension

Inherited from base.NamedUI (private): _is_menu

Inherited from base.BaseUI: __melcmd__

Inherited from interface.iDagItem: kOrder_BreadthFirst, kOrder_DepthFirst

Inherited from util.EventSenderUI: reraise_on_error, sender_as_argument

    Configuration

Inherited from base.NamedUI (private): _sep

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

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

source code 
Initialize the layout
Overrides: object.__init__

__getitem__(self, key)
(Indexing operator)

source code 
Implemented by UIContainerBase
Parameters:
  • key - if integer, will return the given list index, if string, the child matching the id
Returns:
the child with the given name, see childByName
Overrides: util.UIContainerBase.__getitem__

children(self)

source code 
Parameters:
  • predicate - return True to include x in result
Returns:
children of this layout
Overrides: interface.iDagItem.children

setParentActive(self)

source code 
Set the parent ( layout ) of this layout active - newly created items will be children of the parent layout
Returns:
self

Note: can safely be called several times

p_ca(self)

source code 
Returns:
children of this layout

p_childArray(self)

source code 
Returns:
children of this layout