API Reference for Enthought Tool Suite 3.2.0

Adds a 'drop_file' feature to DockWindow which allows the object associated with a DockControl to expose a trait which can accept files dropped onto it. The trait can either accept strings (i.e. file names), FilePosition objects, or lists of the above. The trait which accepts files should have 'drop_file' metadata, which can either be True, a file suffix (e.g. '.py'), a list of file extensions, or a DropFile object. If file extensions are specified, then only files with corresponding extensions can be dropped on the view.

Specifying a DropFile object as the 'drop_file' metadata also provides the option of making the trait draggable, as well as specifying a custom tooltip.

Variables

Classes

Function summary

Functions

Imported Names

Local nameRefers to
DockWindowFeatureenthought.pyface.dock.dock_window_feature.DockWindowFeature
DropFileenthought.developer.features.feature_metadata.DropFile
Enumenthought.traits.trait_types.Enum
existsos.path.exists
falseenthought.traits.trait_types.false
Fileenthought.io.file.File
FileDialogenthought.pyface.file_dialog.FileDialog
FilePositionenthought.developer.helper.file_position.FilePosition
HasPayloadenthought.developer.helper.has_payload.HasPayload
HasStrictTraitsenthought.traits.has_traits.HasStrictTraits
HasTraitsenthought.traits.has_traits.HasTraits
ImageResourceenthought.pyface.image_resource.ImageResource
Listenthought.traits.trait_types.List
OKenthought.pyface.constant.OK
splitextos.path.splitext
Strenthought.traits.trait_types.Str

© Copyright 2002-2009 Enthought, Inc.