Rick Muller | 9 Feb 18:53
Picon
Gravatar

Help with Traits Enum types

Thanks for Traits; I'm just learning it, but have been having a lot of fun thus far.

One thing that I haven't figured out how to do is to set the default value of an Enum type, when I want it to be something other than the first value.

choice = Enum(1,2,3,default=2)

or something. How can I do this?

Thanks,

Rick


--
Rick Muller
rpmuller-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
505-750-7557

_______________________________________________
Enthought-Dev mailing list
Enthought-Dev@...
https://mail.enthought.com/mailman/listinfo/enthought-dev

Gmane