about polygon
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() -- http://mail.python.org/mailman/listinfo/python-list
Re: about polygon
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
Re: about polygon
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 denote transparency): c.create_polygon(60,60,100,60,100,100,60,120, fill=, outline=black) I don't know why that isn't the default. Peter -- http://mail.python.org/mailman/listinfo/python-list
Re: about polygon
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, what is the difference between create_line and create_polygon? Thanks! -- http://mail.python.org/mailman/listinfo/python-list
Re: about polygon
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,120,60,60) Jan If so, what is the difference between create_line and create_polygon? Well, that one is filled and the other not? Diez -- http://mail.python.org/mailman/listinfo/python-list
Re: about polygon
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