I'm using configure_traits because that's what I discovered first, but this is from the documentation:<br><br>This method is intended for use in applications that do not normally
have a GUI.<br><br>edit_traits can take a parent so it can be used when you're embedding inside some other gui. configure_traits works nicely because I don't need to design my own gui and it returns false when the user hits cancel and true when he/she hit ok so I can do:<br>
<br>if f.configure_traits():<br> do_something()<br><br>That being said I've run into this issue separate from traits, but I gave that as an example because it's reproducible. I'm not sure what the root cause is. I was hoping there was a relativly easy work around but I guess I'm just going to have to break my ctrl-C habit.<br>
<br>Bago<br><br>ps I'm using redhat linux and max osx.<br><br><div class="gmail_quote">On Wed, Sep 7, 2011 at 5:59 PM, Fernando Perez <span dir="ltr"><<a href="mailto:fperez.net@gmail.com">fperez.net@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">On Wed, Sep 7, 2011 at 5:53 PM, Bago <<a href="mailto:mrbago@gmail.com">mrbago@gmail.com</a>> wrote:<br>
> f.configure_traits()<br>
><br>
> if I ctrl-C when the configure_traits window is open, or close out of it and<br>
> hit ctrl-C ipython quits.<br>
<br>
</div>I see it now. There seems to be a difference between edit_traits and<br>
configure_traits. The former doesn't cause the problem and returns<br>
control to the terminal while the GUI is open, while the latter blocks<br>
and crashes with Ctrl-C.<br>
<br>
I don't know enough about traits though, what's the intended use of<br>
configure_traits vs edit_traits? I'd always used edit_traits...<br>
<br>
Cheers,<br>
<font color="#888888"><br>
f<br>
</font></blockquote></div><br>