gamelib.py
def wait_for_tk(self) -> None:
        """
        Initializes the thread and waits until the window
        also is initialized.
        """

        if not _TkWindow.initialized.is_set():
            _GameThread.initialized.set()

            # block until Tk is initialized
            _TkWindow.initialized.wait()

        Initializes the thread and waits until the window
        also is initialized.
        
Initializes the thread and waits until the window
also is initialized.
Initializes the thread and waits until the window also is initialized .
def wait_for_tk(self) -> None:
        if not _TkWindow.initialized.is_set():
            _GameThread.initialized.set()
            _TkWindow.initialized.wait()
def wait_for_tk ( self ) -> None : if not _TkWindow . initialized . is_set ( ) : _GameThread . initialized . set ( ) _TkWindow . initialized . wait ( )
Initializes the thread and waits until the window
also is initialized.
Initializes the thread and waits until the window also is initialized .
"""
        Initializes the thread and waits until the window
        also is initialized.
        """ # block until Tk is initialized
self