Added Pane support to Window.find_element_with_focus

This commit is contained in:
PySimpleGUI 2020-05-25 09:06:58 -04:00
parent f24300a1fc
commit 9037c60dec
1 changed files with 4 additions and 0 deletions

View File

@ -9489,6 +9489,10 @@ def _FindElementWithFocusInSubForm(form):
matching_elem = _FindElementWithFocusInSubForm(element)
if matching_elem is not None:
return matching_elem
elif element.Type == ELEM_TYPE_PANE:
matching_elem = _FindElementWithFocusInSubForm(element)
if matching_elem is not None:
return matching_elem
elif element.Type == ELEM_TYPE_INPUT_TEXT:
if element.TKEntry is not None:
if element.TKEntry is element.TKEntry.focus_get():