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

Method _AutoCloseAlarmCallback

PySimpleGUI/PySimpleGUI.py:10510–10525  ·  view source on GitHub ↗

Function that's called by tkinter when autoclode timer expires. Closes the window

(self)

Source from the content-addressed store, hash-verified

10508 return self.DefaultElementSize
10509
10510 def _AutoCloseAlarmCallback(self):
10511 """
10512 Function that's called by tkinter when autoclode timer expires. Closes the window
10513
10514 """
10515 try:
10516 window = self
10517 if window:
10518 if window.NonBlocking:
10519 self.Close()
10520 else:
10521 window._Close()
10522 self.TKroot.quit()
10523 self.RootNeedsDestroying = True
10524 except:
10525 pass
10526
10527 def _TimeoutAlarmCallback(self):
10528 """

Callers

nothing calls this directly

Calls 2

CloseMethod · 0.80
_CloseMethod · 0.80

Tested by

no test coverage detected