Re: drawline

2005-11-25 Thread Ben Bush
On 11/23/05, Magnus Lycka <[EMAIL PROTECTED]> wrote: > Ben Bush wrote: > > I had the following code and when I clicked the left mouse button one > > time. I got green line and the second click got a purple line and the > > green disappeared. > > I was confused by two questions: > > It's good that t

Re: drawline

2005-11-23 Thread Magnus Lycka
Ben Bush wrote: > I had the following code and when I clicked the left mouse button one > time. I got green line and the second click got a purple line and the > green disappeared. > I was confused by two questions: It's good that these postings are archived, so that teachers can check them before

Re: drawline

2005-11-22 Thread Eugene Druker
Hi Ben, if I understood your questions properly, this code gives some answers (on XP): from Tkinter import * lines = [ [ (100, 200, 350, 200), LAST, "red",'' ], [ (100, 0, 100, 200), FIRST, "green", 'a' ], [ (100, 200, 300, 100), LAST, "purple", 'b' ], ] ClickMax = len(