Turn off focus for Output Element
This commit is contained in:
parent
03e6310834
commit
bda54f0db6
|
@ -5464,6 +5464,7 @@ def PackFormIntoFrame(form, containing_frame, toplevel_form):
|
||||||
element._TKOut = TKOutput(tk_row_frame, width=width, height=height, bd=border_depth,
|
element._TKOut = TKOutput(tk_row_frame, width=width, height=height, bd=border_depth,
|
||||||
background_color=element.BackgroundColor, text_color=text_color, font=font,
|
background_color=element.BackgroundColor, text_color=text_color, font=font,
|
||||||
pad=elementpad)
|
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')
|
element._TKOut.pack(side=tk.LEFT, expand=True, fill='both')
|
||||||
if element.Visible is False:
|
if element.Visible is False:
|
||||||
element._TKOut.frame.pack_forget()
|
element._TKOut.frame.pack_forget()
|
||||||
|
|
Loading…
Reference in New Issue