On Fri, Dec 17, 2010 at 8:00 AM, <pyt...@bdurham.com> wrote: > I understand that Tkinter frames do not have a property that allows their > border color to be customized. > > Here are some high level ideas I have on how to create a colored border > effect - any suggestions on best practice appreciated. > <snip> > 2. Use a canvas instead of a frame, draw a border using the > create_rectangle( ..., fill="<frame backgroundcolor>" ), and then bind to > the canvas's <Config>(?) event and to delete and redraw the border every > time the canvas resizes. > <snip> > 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? >
on 2, definitely. Rather than using fill, you could set the outline color, style, and width (e.g. dash/stipple): http://effbot.org/tkinterbook/canvas.htm <http://effbot.org/tkinterbook/canvas.htm>HTH, Wayne
_______________________________________________ Tkinter-discuss mailing list Tkinter-discuss@python.org http://mail.python.org/mailman/listinfo/tkinter-discuss