<br><br><div class="gmail_quote">On Fri, Dec 17, 2010 at 8:00 AM,  <span dir="ltr">&lt;<a href="mailto:python@bdurham.com">python@bdurham.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">


<div><div style="font-family:Arial;font-size:medium" dir="ltr"><div>I understand that Tkinter frames do not have a property that allows their border color to be customized.</div>
<div> </div>
<div>Here are some high level ideas I have on how to create a colored border effect - any suggestions on best practice appreciated.</div>
<div> &lt;snip&gt;</div>
<div>2. Use a canvas instead of a frame, draw a border using the create_rectangle( ..., fill=&quot;&lt;frame backgroundcolor&gt;&quot; ), and then bind to the canvas&#39;s &lt;Config&gt;(?) event and to delete and redraw the border every time the canvas resizes.</div>


<div>&lt;snip&gt;</div>
<div>Regarding options 2 and 3: Might there be a way to create non-solid border styles, eg. borders that are composed of dots or dashes?</div></div></div></blockquote><div><br></div><div>on 2, definitely. Rather than using fill, you could set the outline color, style, and width (e.g. dash/stipple):</div>

<div><a href="http://effbot.org/tkinterbook/canvas.htm">http://effbot.org/tkinterbook/canvas.htm</a></div><div><br></div><div><a href="http://effbot.org/tkinterbook/canvas.htm"></a>HTH,</div><div>Wayne </div></div>