How to define validation across multiple traits?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

How to define validation across multiple traits?

Des.P
class A(HasTraits):
   x = Int
   y = Int

How do I define validation for A that passes only if (x < y)?

Thanks!

_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev