MCPcopy
hub / github.com/PySimpleGUI/PySimpleGUI / _create_thread_queue

Method _create_thread_queue

PySimpleGUI/PySimpleGUI.py:12219–12232  ·  view source on GitHub ↗

Creates the queue used by threads to communicate with this window

(self)

Source from the content-addressed store, hash-verified

12217 _exit_mainloop(self, None)
12218
12219 def _create_thread_queue(self):
12220 """
12221 Creates the queue used by threads to communicate with this window
12222 """
12223
12224 if self.thread_queue is None:
12225 self.thread_queue = queue.Queue()
12226
12227 if self.thread_lock is None:
12228 self.thread_lock = threading.Lock()
12229
12230 if self.thread_strvar is None:
12231 self.thread_strvar = tk.StringVar()
12232 self.thread_strvar.trace_add("write", self._window_tkvar_changed_callback)
12233
12234 def write_event_value(self, key, value):
12235 """

Callers 1

StartupTKFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected