Re: [Matplotlib-users] Backend neutral idle event won't repeat

2009-08-03 Thread Mark Rubelmann
On Mon, Aug 3, 2009 at 1:01 PM, Christopher Barker wrote: > John Hunter wrote: > >> Wriing a GUI neutal idle event handler is not easy -- I've spent some > >> time on it but crashed and burned on tk > > > I think > > it would be great if we could abstract the idle handler and timeout > > handler

Re: [Matplotlib-users] Backend neutral idle event won't repeat

2009-08-03 Thread Christopher Barker
John Hunter wrote: >> Wriing a GUI neutal idle event handler is not easy -- I've spent some >> time on it but crashed and burned on tk > I think > it would be great if we could abstract the idle handler and timeout > handler across the GUIs so that mpl animation would be easier, but to > date th

Re: [Matplotlib-users] Backend neutral idle event won't repeat

2009-08-02 Thread John Hunter
On Sun, Aug 2, 2009 at 9:39 AM, Mark Rubelmann wrote: > Thanks for the reply John.  Not quite the answer I was looking for > though ;)  I tried your suggestion of returning True but it didn't solve > the problem.  Oh well, not the end of the world.  Being a die-hard KDE user, > I started trying

Re: [Matplotlib-users] Backend neutral idle event won't repeat

2009-08-02 Thread John Hunter
On Sun, Aug 2, 2009 at 10:35 AM, John Hunter wrote: > On Sun, Aug 2, 2009 at 9:39 AM, Mark Rubelmann wrote: >> Thanks for the reply John.  Not quite the answer I was looking for >> though ;)  I tried your suggestion of returning True but it didn't solve >> the problem.  Oh well, not the end of

Re: [Matplotlib-users] Backend neutral idle event won't repeat

2009-08-02 Thread Mark Rubelmann
Thanks for the reply John. Not quite the answer I was looking for though ;) I tried your suggestion of returning True but it didn't solve the problem. Oh well, not the end of the world. Being a die-hard KDE user, I started trying to get things working with Qt. I got my animation working bu

Re: [Matplotlib-users] Backend neutral idle event won't repeat

2009-08-02 Thread John Hunter
On Sun, Aug 2, 2009 at 8:08 AM, John Hunter wrote: > Wriing a GUI neutal idle event handler is not easy -- I've spent some > time on it but crashed and burned on tk -- but my guess is that the > problem you are having in your code is that GTK expects you to return > True is you want the func to be

Re: [Matplotlib-users] Backend neutral idle event won't repeat

2009-08-02 Thread John Hunter
On Sat, Aug 1, 2009 at 12:05 PM, Mark Rubelmann wrote: > Hi, > > I'm writing a script to plot data being read from a serial connection in > real time.  I'm trying to use an idle_event callback to continually read the > incoming data and plot it.  The problem is that the callback is only getting > i

[Matplotlib-users] Backend neutral idle event won't repeat

2009-08-01 Thread Mark Rubelmann
Hi, I'm writing a script to plot data being read from a serial connection in real time. I'm trying to use an idle_event callback to continually read the incoming data and plot it. The problem is that the callback is only getting invoked once. I found this page: http://www.scipy.org/Cookbook/Mat