Turn off focus for Output Element

This commit is contained in:
MikeTheWatchGuy 2019-04-16 11:19:39 -04:00
parent 03e6310834
commit bda54f0db6
1 changed files with 1 additions and 0 deletions

View File

@ -5464,6 +5464,7 @@ def PackFormIntoFrame(form, containing_frame, toplevel_form):
element._TKOut = TKOutput(tk_row_frame, width=width, height=height, bd=border_depth,
background_color=element.BackgroundColor, text_color=text_color, font=font,
pad=elementpad)
element._TKOut.output.configure(takefocus=0) # make it so that Output does not get focus
element._TKOut.pack(side=tk.LEFT, expand=True, fill='both')
if element.Visible is False:
element._TKOut.frame.pack_forget()