From bda54f0db68cfc042a8b0646bdbf08242412c40f Mon Sep 17 00:00:00 2001 From: MikeTheWatchGuy Date: Tue, 16 Apr 2019 11:19:39 -0400 Subject: [PATCH] Turn off focus for Output Element --- PySimpleGUI.py | 1 + 1 file changed, 1 insertion(+) diff --git a/PySimpleGUI.py b/PySimpleGUI.py index 23962677..b2f1d758 100644 --- a/PySimpleGUI.py +++ b/PySimpleGUI.py @@ -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()