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

Method disable

PySimpleGUI/PySimpleGUI.py:11660–11667  ·  view source on GitHub ↗

Disables window from taking any input from the user

(self)

Source from the content-addressed store, hash-verified

11658 self._restore_stderr()
11659
11660 def disable(self):
11661 """
11662 Disables window from taking any input from the user
11663 """
11664 if not self._is_window_created('tried Window.disable'):
11665 return
11666 self.TKroot.attributes('-disabled', 1)
11667 # self.TKroot.grab_set_global()
11668
11669 def enable(self):
11670 """

Callers

nothing calls this directly

Calls 1

_is_window_createdMethod · 0.95

Tested by

no test coverage detected