Did I find the right examples for you? yes no

All Samples(13)  |  Call(13)  |  Derive(0)  |  Import(0)
Raises a TraitError exception.

Parameters
----------
object : object
    The object whose attribute is being assigned.
name : str
    The name of the attribute being assigned.
value : object
    The proposed new value for the attribute.(more...)

src/c/h/chaco-HEAD/examples/demo/chaco_trait_editor.py   chaco(Download)
            return value
 
        self.error(object, name, value)
 
    def create_editor(self):

src/t/r/traitsui-4.4.0/traitsui/ui_traits.py   traitsui(Download)
                return result
 
        self.error( object, name, value )
 
#-------------------------------------------------------------------------------
            return new_value
 
        self.error( object, name, value )
 
    def create_editor ( self ):
            return new_value
 
        self.error( object, name, value )
 
#-------------------------------------------------------------------------------
                value = self.klass( value )
            except:
                self.error( object, name, value )
        elif isinstance( value, tuple ):
            try:
                value = self.klass( *value )
            except:
                self.error( object, name, value )

src/t/r/traitsui-HEAD/traitsui/ui_traits.py   traitsui(Download)
                return result
 
        self.error( object, name, value )
 
#-------------------------------------------------------------------------------
            return new_value
 
        self.error( object, name, value )
 
    def create_editor ( self ):
            return new_value
 
        self.error( object, name, value )
 
#-------------------------------------------------------------------------------
                value = self.klass( value )
            except:
                self.error( object, name, value )
        elif isinstance( value, tuple ):
            try:
                value = self.klass( *value )
            except:
                self.error( object, name, value )