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

Method _window_tkvar_changed_callback

PySimpleGUI/PySimpleGUI.py:12197–12217  ·  view source on GitHub ↗

Internal callback function for when the thread :param event: Information from tkinter about the callback :type event:

(self, *args)

Source from the content-addressed store, hash-verified

12195 _error_popup_with_traceback('Window.ding() - tkinter reported error from bell() call', e)
12196
12197 def _window_tkvar_changed_callback(self, *args):
12198 """
12199 Internal callback function for when the thread
12200
12201 :param event: Information from tkinter about the callback
12202 :type event:
12203
12204 """
12205 # print('Thread callback info', threading.current_thread())
12206 # print(event)
12207 # trace_details = traceback.format_stack()
12208 # print(''.join(trace_details))
12209 # self.thread_lock.acquire()
12210 # if self.thread_timer:
12211 # self.TKroot.after_cancel(id=self.thread_timer)
12212 # self.thread_timer = None
12213 # self.thread_lock.release()
12214
12215 if self._queued_thread_event_available():
12216 self.FormRemainedOpen = True
12217 _exit_mainloop(self, None)
12218
12219 def _create_thread_queue(self):
12220 """

Callers

nothing calls this directly

Calls 2

_exit_mainloopFunction · 0.85

Tested by

no test coverage detected