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

Method force_focus

PySimpleGUI/PySimpleGUI.py:12148–12154  ·  view source on GitHub ↗

Forces this window to take focus

(self)

Source from the content-addressed store, hash-verified

12146 print('Exception trying to make modal', e)
12147
12148 def force_focus(self):
12149 """
12150 Forces this window to take focus
12151 """
12152 if not self._is_window_created('tried Window.force_focus'):
12153 return
12154 self.TKroot.focus_force()
12155
12156 def was_closed(self):
12157 """

Callers 4

popup_get_textFunction · 0.95
mainFunction · 0.80
mainFunction · 0.80

Calls 1

_is_window_createdMethod · 0.95

Tested by

no test coverage detected