MCPcopy Index your code
hub / github.com/PySimpleGUI/PySimpleGUI / find_element_with_focus

Method find_element_with_focus

PySimpleGUI/PySimpleGUI.py:11013–11020  ·  view source on GitHub ↗

Returns the Element that currently has focus as reported by tkinter. If no element is found None is returned! :return: An Element if one has been found with focus or None if no element found :rtype: Element | None

(self)

Source from the content-addressed store, hash-verified

11011 Elem = find_element # NEW for 2019! More laziness... Another shortcut
11012
11013 def find_element_with_focus(self):
11014 """
11015 Returns the Element that currently has focus as reported by tkinter. If no element is found None is returned!
11016 :return: An Element if one has been found with focus or None if no element found
11017 :rtype: Element | None
11018 """
11019 element = _FindElementWithFocusInSubForm(self)
11020 return element
11021
11022 def widget_to_element(self, widget):
11023 """

Callers 7

mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
runMethod · 0.80

Calls 1

Tested by

no test coverage detected