I recall from past examples that it's possible to define a custom trait
type for a dictionary object that stores a predetermined object type. I'd
like to define a dictionary which has a Filename as key, and the value is 2
parts, the first of which is a tuple and the second of which is an array.
filename: (tuple), nparray
filename: [ (tuple), nparray]
Either way is fine. How would I define such a trait object when defining
my trait types at the beginning of a class?
Also, the nparray is a special datatype that I've already defined. Is it
possible to include this into my dictionary definitions? For example:
I am trying to use the cursor tools of chaco to get information on a plot.
I developped a new ToolbarButton to place two cursors on a plot. I would
like to make a modification of this button so that if the cursors are
already there, it supresses them.