Inherits from
- BaseFile: enthought.traits.trait_types.BaseFile
Attributes
Inherited from base classes
Method summary
- __init__(self, value = '', filter = None, auto_set = False, entries = 0, exists = False, **metadata)
Inherited from base classes
- __call__(self, *args, **kw)
- __getattr__(self, name)
- arg_error(self, method, arg_num, object, name, value)
- as_ctrait(self)
- clone(self, default_value = Missing, **metadata)
- create_editor(self)
- dup_arg_error(self, method, arg_num, object, name)
- error(self, object, name, value)
- full_info(self, object, name, value)
- get_default_value(self)
- get_editor(self, trait = None)
- get_value(self, object, name, trait = None)
- info(self)
- init(self)
- inner_traits(self)
- is_valid(self, object, name, value)
- keyword_error(self, method, object, name, value)
- missing_arg_error(self, method, arg_num, object, name)
- repr(self, value)
- return_error(self, method, object, value)
- set_value(self, object, name, value)
Methods
- __init__(self, value = '', filter = None, auto_set = False, entries = 0, exists = False, **metadata)
Creates a File trait.
Parameters
- value : string
- The default value for the trait
- filter : string
- A wildcard string to filter filenames in the file dialog box used by the attribute trait editor.
- auto_set : boolean
- Indicates whether the file editor updates the trait value after every key stroke.
- exists : boolean
- Indicates whether the trait value must be an existing file or not.
Default Value
value or ''