[IPython-user] Re: ipython and tkinter canvas
Fernando Perez
Fernando.Perez at colorado.edu
Sun Nov 7 14:13:03 CST 2004
More info rom Rod Holland...
> A bit more detail:
>
> So I discovered that if I do not run root.mainloop I can add to the image
> interactively (thats cool). But the following does not work as a simple
> animation.
>
> for i in range(10):
> tg3=canvas.create_oval(0,0,10*i,10*i,fill='yellow')
> time.sleep(.5)
>
> It waits until completion of the loop before updating. Is there a way to
> force it to update afer each create? I tried canvas.pack()
>
> Thanks,
> Rod
>
>
>
> Fernando,
>
> Is it possible to load up tkinter in ipython and interact with the canvas
> widget interactively? In my first attempts I can't get control back to the
> command line without closing the window.
>
> Thanks,
> Rod
More information about the IPython-user
mailing list