[Tutor] draw lines

John Fouhy john at fouhy.net
Sun Nov 6 22:41:46 CET 2005


On 07/11/05, Shi Mu <samrobertsmith at gmail.com> wrote:
> I have a list of random points:
> [[x0,y0],[x1,y1],...,[xn,yn]]
> how can I use Tkinter to draw lines to connect them one by one based
> on the order in the list?

You need to use a Tkinter.Canvas.

Have a look at Fredrik Lundh's site: http://effbot.org/tkinterbook/canvas.htm

--
John.


More information about the Tutor mailing list