I am trying to add an Entry
widget to a Frame
with a Scrollbar
. When I click on the GUI, a black border appears:
impor
To remove the border of your widgets (for example of a Text
widget) set the highlightthickness
attribute to 0
.
Here, you have a working example:
import tkinter as tk
class Example(tk.Frame):
def __init__(self, master):
tk.Frame.__init__(self, master)
self.text = tk.Text(self, highlightthickness=0)
self.text.pack(expand=1, fill='both')
root = tk.Tk()
Example(root).pack(expand=1, fill='both')
root.mainloop()