API Reference for Enthought Tool Suite 3.2.0
Adds a 'connection' feature to DockWindow which allows users to dynamically connect (i.e. synchronize) traits on one object with another either permanently (via a connection) or temporarilly (via drag and drop). To make an object 'connectable' the developer must specify the 'connection' metadata on any trait that can be connected to another object's trait. The value of the 'connection' metadata should be a Connection object, which contains information about how connections can be made to the object trait.
drag_image = ImageResource('connect_drag_feature.png')
The various object dragging modes supported:
DragMode = Enum('object', 'file', 'none')
file_image = ImageResource('connect_file_feature.png')
from_image = ImageResource('connect_from_feature.png')
linked_image = ImageResource('connect_linked_feature.png')
Menu to display when there are no available connections/disconnections:
no_connections = Menu(Action(name = 'No connections available', enabled = False), name = 'popup')
object_image = ImageResource('connect_object_feature.png')
PermanentConnections = 'enthought.developer.features.ConnectFeature.permanent_connections'
to_image = ImageResource('connect_to_feature.png')
Images used to create the composite feature image:
unlinked_image = ImageResource('connect_unlinked_feature.png')
| Local name | Refers to |
|---|---|
| Action | enthought.traits.ui.menu.Action |
| Any | enthought.traits.trait_types.Any |
| Dict | enthought.traits.trait_types.Dict |
| DockWindowFeature | enthought.pyface.dock.dock_window_feature.DockWindowFeature |
| Enum | enthought.traits.trait_types.Enum |
| get_pickle | enthought.developer.helper.pickle.get_pickle |
| HasPrivateTraits | enthought.traits.has_traits.HasPrivateTraits |
| HasTraits | enthought.traits.has_traits.HasTraits |
| ImageResource | enthought.pyface.image_resource.ImageResource |
| Instance | enthought.traits.trait_types.Instance |
| List | enthought.traits.trait_types.List |
| Menu | enthought.pyface.action.menu_manager.MenuManager |
| set_pickle | enthought.developer.helper.pickle.set_pickle |
| Str | enthought.traits.trait_types.Str |
© Copyright 2002-2009 Enthought, Inc.