[Tutor] draw lines

Kent Johnson kent37 at tds.net
Sun Nov 6 22:51:59 CET 2005


Shi Mu 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 can use a Canvas widget to draw lines. You will probably have to scale your coordinates to match the coordinates of the screen.

Kent

-- 
http://www.kentsjohnson.com



More information about the Tutor mailing list