I would really appreciate some help with tkinter. Does anyone know how to change border colour of a widget and if it is possible to display border on just one side of the widget (so for example only the left or bottom border)?
I tried to find the answer on the web but I couldn't. Any help would be greatly appreciated
Thanks for such a quick reply. Tutorial you gave me is very nice and I'll be using it in future. However, I had a look there and I still couldn't find the answer to my problem :( ... maybe im just blind
Does anyone know how to change border colour of a widget
Border colors, AFAIK, are the same as the widget color, so you would have to use an outside, empty widget of one color, and an inside widget of another color, although that is not quite what you want. The PMW toolkit extension does have a bordercolor key word but I have never tried it.
# create a frame with a left side border
# using overlapping frames
import Tkinter as tk
root = tk.Tk()
root.title("left side border")
frame1 = tk.Frame(root, bg='brown', width=400, height=200)
frame2 = tk.Frame(root, bg='yellow', width=390, height=200)