Wow... changing to TkAgg backend makes raw_input() just work. I suppose this is because the Tk thread does not need the GIL to render? Is there a downside to using TkAgg? I am also noticing that it is much faster than GtkAgg.
Jon. On Sun, Mar 8, 2009 at 2:55 PM, Jonathan Taylor <jonathan.tay...@utoronto.ca> wrote: > Hi, > > I am looking to have ipython pause to show me a figure and wait for me > to press a key before it updates the figure. I see that raw_input() > does not let the figure update presumably because it blocks the gui > thread. On the other hand, pylab.waitforbuttonpress works but only > takes keys that were sent to the gui. I would love to be able to > press enter or something on the ipython command prompt to allow the > script to continue. Is this possible? > > I was thinking that it might be possible to use timeouts to keep > switching between the window and the console looking for input. Any > ideas here? > > Thanks, > Jonathan. > ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users