Re: [Tutor] draw lines

2005-11-09 Thread Alex Hunsley
Danny Yoo wrote: >On Sun, 6 Nov 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? >> >> > >Do you know how to draw a single line in Tkinter? Have you lo

Re: [Tutor] draw lines

2005-11-06 Thread Kent Johnson
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 o

Re: [Tutor] draw lines

2005-11-06 Thread Danny Yoo
On Sun, 6 Nov 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? Do you know how to draw a single line in Tkinter? Have you looked at the Canvas widget documentat

Re: [Tutor] draw lines

2005-11-06 Thread John Fouhy
On 07/11/05, Shi Mu <[EMAIL PROTECTED]> 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.

[Tutor] draw lines

2005-11-06 Thread Shi Mu
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? Thanks a lot! ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tuto