Skip to content

Instantly share code, notes, and snippets.

@ultrafunkamsterdam
ultrafunkamsterdam / PySimpleGui-asyncio-tasks.py
Created March 27, 2020 23:40
PySimpleGui Window loops as tasks in asyncio
import asyncio
import PySimpleGUI as sg
loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop)
form = sg.FlexForm(
"Everything bagel", auto_size_text=True, default_element_size=(40, 1)
)