API Reference for Enthought Tool Suite 2.7.1

Adds a "category" capability to Traits-based classes, similar to that provided by the Cocoa (Objective-C) environment for the Macintosh.

You can use categories to extend an existing HasTraits class, as an alternative to subclassing. An advantage of categories over subclassing is that you can access the added members on instances of the original class, without having to change them to instances of a subclass. Unlike subclassing, categories do not allow overriding trait attributes.

Classes

Imported Names

Local nameRefers to
BaseTraitsenthought.traits.has_traits.BaseTraits
ClassTraitsenthought.traits.has_traits.ClassTraits
MetaHasTraitsenthought.traits.has_traits.MetaHasTraits
MetaHasTraitsObjectenthought.traits.has_traits.MetaHasTraitsObject
PrefixTraitsenthought.traits.has_traits.PrefixTraits
ViewTraitsenthought.traits.has_traits.ViewTraits

Copyright © 2002-2008 Enthought, Inc.