Re: [Tutor] Help with the following code..

2006-11-23 Thread Bob Gailer
Alan Gauld wrote: > I think he has a reference but just couldn't see how you could draw > a 4 cornered shape with only two corners specified. > And I assumed no reference, since references usually spell out the meaning of parameters. -- Bob Gailer 510-978-4454 ___

Re: [Tutor] Help with the following code..

2006-11-23 Thread Alan Gauld
"Bob Gailer" <[EMAIL PROTECTED]> wrote > Asrarahmed Kadri wrote: >> I am not able to understand why two pairs of co-ordinates are >> supplied?? The rectangle requires 4 co-ordinate pairs, Isnt it?? > "6.9. The canvas rectangle object - Each rectangle is specified as > two > points: (x0, y0) is

Re: [Tutor] Help with the following code..

2006-11-23 Thread Bob Gailer
Asrarahmed Kadri wrote: > > Hi all, > > > Trying to draw a simple bar chart on canvas of Tkinter. > > Here is code: > > > from Tkinter import * > > root = Tk() > > frame = Frame(root) > frame.pack() > > canvas = Canvas(frame,height=400,width=400) > > canvas.create_line(50,350,350,350,width=

Re: [Tutor] Help with the following code..

2006-11-23 Thread John Fouhy
On 24/11/06, Asrarahmed Kadri <[EMAIL PROTECTED]> wrote: > canvas.create_rectangle(50,340,250,330) # this is the first HORIZONTAL BAR > canvas.pack () > > root.mainloop() > I am not able to understand why two pairs of co-ordinates are supplied?? The > rectangle requires 4 co-ordinate pairs, Isnt

[Tutor] Help with the following code..

2006-11-23 Thread Asrarahmed Kadri
Hi all, Trying to draw a simple bar chart on canvas of Tkinter. Here is code: from Tkinter import * root = Tk() frame = Frame(root) frame.pack() canvas = Canvas(frame,height=400,width=400) canvas.create_line(50,350,350,350,width=2) # draws the X-axis canvas.create_line(50,350,50,50,width=