Re: about polygon

2005-11-20 Thread Jan Voges
Hi Am Sun, 20 Nov 2005 04:45:52 -0800 schrieb Shi Mu: > If so, what is the difference between create_line and create_polygon? create_polygon only creates closed polygons. Jan -- http://mail.python.org/mailman/listinfo/python-list

Re: about polygon

2005-11-20 Thread Diez B. Roggisch
Shi Mu wrote: > On 11/20/05, Jan Voges <[EMAIL PROTECTED]> wrote: > >>Hi! >> >>Am Sun, 20 Nov 2005 03:55:21 -0800 schrieb Shi Mu: >> >> >>>Why I got a black polygon in the following code? >>>How can I make it no-color filled? >> >>Use create_line instead: >>c.create_line(60,60,100,60,100,100,60,12

Re: about polygon

2005-11-20 Thread Shi Mu
On 11/20/05, Jan Voges <[EMAIL PROTECTED]> wrote: > Hi! > > Am Sun, 20 Nov 2005 03:55:21 -0800 schrieb Shi Mu: > > > Why I got a black polygon in the following code? > > How can I make it no-color filled? > > Use create_line instead: > c.create_line(60,60,100,60,100,100,60,120,60,60) > > Jan If so,

Re: about polygon

2005-11-20 Thread Peter Otten
Shi Mu wrote: > Why I got a black polygon in the following code? > How can I make it no-color filled? > Thanks! > > import Tkinter > > c = Tkinter.Canvas(width=220, height=220) > c.pack() > c.create_polygon(60,60,100,60,100,100,60,120) > c.mainloop() You can set the color explicitly (use "" to

Re: about polygon

2005-11-20 Thread Jan Voges
Hi! Am Sun, 20 Nov 2005 03:55:21 -0800 schrieb Shi Mu: > Why I got a black polygon in the following code? > How can I make it no-color filled? Use create_line instead: c.create_line(60,60,100,60,100,100,60,120,60,60) Jan -- http://mail.python.org/mailman/listinfo/python-list