Debian Codegraph @

examples/tutorials/doc_examples/doc_examples.rst

raw
1 Documentation Examples
2 ======================
3
4 This tutorial is simply a collection of the various examples taken from the
5 Traits documentation. They are presented as a tutorial so that interested users
6 can see the results of actually executing the example code, as well as to
7 promote further study and exploration of various Traits topics in an interactive
8 environment that allows easy modification and testing of changes to the code.
9
10 So please feel free to explore the examples as your time, fancy and interest
11 dictate. Have fun!
12
13 A brief description of each of the examples presented in this tutorial follows:
14
15 Add Class Traits
16 Defining mutually-referring classes using the *add_class_trait* method.
17
18 All Traits Features
19 Shows the five primary features of the Traits package.
20
21 Bad Self Ref
22 Shows the incorrect way of defining a self-referencing class.
23
24 Cast Simple
25 Shows use of some of the simple casting types.
26
27 Circular Definition
28 Shows the incorrect way of defining mutually-referring classes.
29
30 Compound
31 Shows the definition of a compound trait.
32
33 Custom TraitHandler
34 Example of a custom TraitHandler
35
36 Use Custom TraitHandler
37 Example of using a custom TraitHandler
38
39 Delegate
40 Example of trait delegation.
41
42 Delegate Prefix
43 Examples of the Delegate() 'prefix' parameter.
44
45 Delegation Notification
46 Example of notification with delegation.
47
48 Event
49 Shows the definition of a trait event
50
51 List Notifiers
52 Example of zero-parameter handlers for an object containing a list
53
54 Metadata
55 Example of accessing trait metadata attributes
56
57 Minimal
58 Minimal example of using Traits.
59
60 Override Default
61 Example of overriding a default value for a trait attribute in a subclass
62
63 Static Notification
64 Example of static attribute notification
65
66 This
67 Example of This predefined trait
68
69 Trait Reuse
70 Example of reusing trait definitions
71
72 Temp Wildcard
73 Example of using a wildcard with a trait attribute name.
74 All Wildcard
75 Shows the trait attribute wildcard rules.
76 Wildcard rules
77 Example of trait attribute wildcard rules
78
79