From: Todd M. <jm...@st...> - 2004-05-25 21:35:43
|
On Tue, 2004-05-25 at 17:11, Todd Miller wrote: > On Tue, 2004-05-25 at 11:13, John Hunter wrote: > > >>>>> "Todd" == Todd Miller <jm...@st...> writes: > > > > Todd> I tried porting anim.py to TkAgg this morning and got it > > Todd> basically working. There are two things that might account > > Todd> for the trouble you've been having: > > > > Todd> 1. With TkAgg, at least for now, you have to call the > > Todd> figure manager show() method with each cycle rather than the > > Todd> canvas draw() method. > > > > Would it be possible to reorganize tkagg so that a call to canvas.draw > > also triggers a blit so that the interface could be more consistent > > across backends? > > I've been on leave a lot today but I'll take a look at this either this > evening or tomorrow morning. > This turned out to be really easy so now canvas.draw triggers a blit and functions more like the other backends. It's in CVS. I also found an extraneous draw() so performance should be better, perhaps 2x. Cheers, Todd |