Package NetworkEditor :: Module datatypes :: Class AnyType
[hide private]
[frames] | no frames]

Class AnyType

source code

UserDict.UserDict --+
                    |
                   AnyType
Known Subclasses:
ArrayType, DictType, ListType, NumericArrayType, TkColorType, TriggerIn, TriggerOut, TupleType, VectorType

Instance Methods [hide private]
  __init__(self, name='Old None', color='white', shape='diamond', width=12, height=8, klass=None, dataDescr=None)
  cast(self, data)
returns a success status (true, false) and the coerced data
  validate(self, data)
returns true if data if of the proper type

Inherited from UserDict.UserDict: __cmp__, __contains__, __delitem__, __getitem__, __len__, __repr__, __setitem__, clear, copy, get, has_key, items, iteritems, iterkeys, itervalues, keys, pop, popitem, setdefault, update, values


Class Methods [hide private]

Inherited from UserDict.UserDict: fromkeys


Method Details [hide private]

__init__(self, name='Old None', color='white', shape='diamond', width=12, height=8, klass=None, dataDescr=None)
(Constructor)

source code 
None
Overrides: UserDict.UserDict.__init__

cast(self, data)

source code 
returns a success status (true, false) and the coerced data

validate(self, data)

source code 
returns true if data if of the proper type