[IPython-User] ctrl-C question

Bago mrbago@gmail....
Wed Sep 7 20:18:52 CDT 2011

I'm using configure_traits because that's what I discovered first, but this
is from the documentation:

This method is intended for use in applications that do not normally have a

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:

if f.configure_traits():

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.


ps I'm using redhat linux and max osx.

On Wed, Sep 7, 2011 at 5:59 PM, Fernando Perez <fperez.net@gmail.com> wrote:

> On Wed, Sep 7, 2011 at 5:53 PM, Bago <mrbago@gmail.com> wrote:
> > f.configure_traits()
> >
> > if I ctrl-C when the configure_traits window is open, or close out of it
> and
> > hit ctrl-C ipython quits.
> I see it now.  There seems to be a difference between edit_traits and
> configure_traits.  The former doesn't cause the problem and returns
> control to the terminal while the GUI is open, while the latter blocks
> and crashes with Ctrl-C.
> I don't know enough about traits though, what's the intended use of
> configure_traits vs edit_traits? I'd always used edit_traits...
> Cheers,
> f
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/ipython-user/attachments/20110907/9ce53f15/attachment.html 

More information about the IPython-User mailing list