"Shi Mu" wrote: > > > How to draw a dash line in the Tkinter? > > > > use the dash option. e.g. > > > > canvas.create_line(xy, fill="red", dash=(2, 4)) > > canvas.create_line(xy, fill="red", dash=(6, 5, 2, 4)) > > > > (the tuple contains a number of line lengths; lengths at odd positions > > are drawn, lengths at even positions are gaps. note that not all com- > > binations are supported on all platforms; if Tkinter cannot find an exact > > match, it will pick a the "closest possible").
> where can I find the option settings for dash line? in the post you replied to? or here (same, but without examples): http://effbot.org/tkinterbook/canvas.htm#Tkinter.Canvas.create_line-method or here (using tcl syntax): http://www.tcl.tk/man/tcl8.4/TkLib/GetDash.htm </F> -- http://mail.python.org/mailman/listinfo/python-list