Merge pull request #2938 from PySimpleGUI/Dev-latest

Added Pane support to Window.find_element_with_focus
This commit is contained in:
PySimpleGUI 2020-05-25 09:07:24 -04:00 committed by GitHub
commit 8d85c8204e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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():