Fix 3.5 compatibility for the GUI example

This commit is contained in:
Lonami Exo 2018-08-02 22:18:01 +02:00
parent a495f542ef
commit a1837431b6

View File

@ -40,7 +40,7 @@ def callback(func):
def wrapped(*args, **kwargs):
result = func(*args, **kwargs)
if inspect.iscoroutine(result):
asyncio.create_task(result)
aio_loop.create_task(result)
return wrapped