File: has_traits.rst

package info (click to toggle)
python-traits 5.2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,576 kB
  • sloc: python: 20,406; ansic: 3,991; makefile: 98; sh: 22
file content (76 lines) | stat: -rw-r--r-- 1,455 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
:mod:`has_traits` Module
========================

.. automodule:: traits.has_traits
    :no-members:

Classes
-------

.. autoclass:: MetaHasTraits

.. autoclass:: MetaInterface

    .. automethod:: __init__

    .. automethod:: __call__

.. autoclass:: HasTraits
    :exclude-members: wrappers

    .. attribute:: wrappers
        :annotation: =

            | {'same': TraitChangeNotifyWrapper,
            |     'extended': ExtendedTraitChangeNotifyWrapper,
            |     'new': NewTraitChangeNotifyWrapper,
            |     'fast_ui': FastUITraitChangeNotifyWrapper,
            |     'ui': FastUITraitChangeNotifyWrapper}

        Mapping from dispatch type to notification wrapper class type

.. autoclass:: HasStrictTraits

.. autoclass:: HasRequiredTraits

.. autoclass:: HasPrivateTraits

.. autoclass:: SingletonHasTraits

.. autoclass:: SingletonHasStrictTraits

.. autoclass:: SingletonHasPrivateTraits

.. autoclass:: Vetoable

.. autoclass:: Interface

.. autoclass:: ISerializable

.. autoclass:: traits_super

ABC classes
-----------

.. note:: These classes are only available when the abc module is present.

.. autoclass:: ABCMetaHasTraits

.. autoclass:: ABCHasTraits

.. autoclass:: ABCHasStrictTraits

Functions
---------

.. autofunction:: cached_property

.. autofunction:: get_delegate_pattern

.. autofunction:: on_trait_change

.. autofunction:: property_depends_on

.. autofunction:: provides

.. autofunction:: weak_arg