예제 #1
0
def on_websocket_close(page, sockets):
    global should_quit
    eel.sleep(3.0)  # We might have just refreshed. Give the websocket a moment to reconnect.
    if not len(eel._websockets):
        # At this point we think the browser window has been closed.
        should_quit = True
        shut_down()
예제 #2
0
파일: gui.py 프로젝트: swz-gh/RLBotGUI
def kill_bots():
    shut_down()