Package mrv :: Package maya :: Module util :: Class OptionVarDict
[hide private]
[frames] | no frames]

Class OptionVarDict

source code

    object --+    
             |    
util.Singleton --+
                 |
                OptionVarDict

A singleton dictionary-like class for accessing and modifying optionVars.

Note: Idea and base Implementation from PyMel, modified to adapt to mrv

Nested Classes [hide private]
  OptionVarList
Instance Methods [hide private]
 
__contains__(self, key) source code
 
__getitem__(self, key) source code
 
__setitem__(self, key, val) source code
 
__delitem__(self, key)
Delete the optionvar identified by key
source code
 
keys(self) source code
 
iterkeys(self)
Returns: iterator to option var names
source code
 
itervalues(self)
Returns: iterator to optionvar values
source code
 
iteritems(self)
Returns: iterators to tuple of key,value pairs
source code
 
get(self, key, default=None) source code
 
has_key(self, key) source code
 
pop(self, key) source code

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

Static Methods [hide private]

Inherited from util.Singleton: __new__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

iterkeys(self)

source code 
Returns:
iterator to option var names

itervalues(self)

source code 
Returns:
iterator to optionvar values

iteritems(self)

source code 
Returns:
iterators to tuple of key,value pairs