Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Re: How to draw a dash line in the Tkinter?

Reply
Thread Tools

Re: How to draw a dash line in the Tkinter?

 
 
Fredrik Lundh
Guest
Posts: n/a
 
      11-21-2005
"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...te_line-method

or here (using tcl syntax):

http://www.tcl.tk/man/tcl8.4/TkLib/GetDash.htm

</F>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Replace "dash" values in a field with new line- VB equivalent ofPython Cathy James Python 2 03-19-2013 03:59 PM
Re: Replace "dash" values in a field with new line- VB equivalent ofPython Joel Goldstick Python 0 03-19-2013 03:50 PM
n-dash & m-dash display in Opera, FF Rigour HTML 4 11-17-2009 07:41 AM
Re: How to draw a dash line in the Tkinter? Fredrik Lundh Python 0 11-20-2005 04:32 PM



Advertisments