I would like to delay a trait notification until after I have finished
typing the value into a field. Is that possible? Right now every keystroke triggers a calculation which is an issue when the calc is rather expensive and the number is something like 110 which results in 3 individual calculations instead of just one. Thanks, Mike _______________________________________________ Enthought-Dev mailing list [hidden email] https://mail.enthought.com/mailman/listinfo/enthought-dev |
you can set the `auto_set` trait of the Item's editor to False.
On Wed, Feb 23, 2011 at 3:49 PM, Mike Tallhamer <[hidden email]> wrote: I would like to delay a trait notification until after I have finished _______________________________________________ Enthought-Dev mailing list [hidden email] https://mail.enthought.com/mailman/listinfo/enthought-dev |
Also, codetools has a much more robust example of how to defer a bunch of traits in an executing context. https://github.com/enthought/codetools/blob/master/enthought/execution/executing_context.py
Chris's way is probably cleaner.
On Wed, Feb 23, 2011 at 8:57 PM, Chris Colbert <[hidden email]> wrote: you can set the `auto_set` trait of the Item's editor to False. _______________________________________________ Enthought-Dev mailing list [hidden email] https://mail.enthought.com/mailman/listinfo/enthought-dev |
In reply to this post by Chris Colbert
Mike, attached is a small demo showing the use of the 'auto_set' and 'enter_set' traits.
Warren On Wed, Feb 23, 2011 at 2:57 PM, Chris Colbert <[hidden email]> wrote: you can set the `auto_set` trait of the Item's editor to False. _______________________________________________ Enthought-Dev mailing list [hidden email] https://mail.enthought.com/mailman/listinfo/enthought-dev |
Free forum by Nabble | Edit this page |