python - How to set border color of certain Tkinter widgets? -
i'm trying change background color of tkinter app, widgets leaves white border around edges.
for example, this:
from tkinter import * color = "black" root = tk() root.config(bg=color) button = button(text="button", bg=color) button.pack(padx=5, pady=5) entry = entry(bg=color, fg='white') entry.pack(padx=5, pady=5) text = text(bg=color, fg='white') text.pack(padx=5, pady=5) root.mainloop()
how can set border colour of tkinter widgets?
turns out wasn't hard defining custom style.
just use: widget.config(highlightbackground=color)
Comments
Post a Comment