Merge pull request #2938 from PySimpleGUI/Dev-latest
Added Pane support to Window.find_element_with_focus
This commit is contained in:
commit
8d85c8204e
|
@ -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():
|
||||
|
|
Loading…
Reference in New Issue