Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
text = None,
state = "normal",
width = None,
height = None,
border_color = "black",
show_border = True):
tk.Frame.__init__(self,
parent,
height = height,
width = width,
highlightbackground = border_color,
highlightcolor = border_color,
highlightthickness = 2 if show_border else 0,
bd = 0)
self.parent = parent
self.textedit = TextEditor_(self,
font = font,
text = text,
state = state)
self.textedit.grid(row = 0,
column = 0,
sticky = "nswe")
self.grid_columnconfigure(0, weight = 1)
self.grid_rowconfigure(0, weight = 1)
self.grid_propagate(False)
self.textedit.focus_set()