embed a aiohttp server in a PyQt application
问题 I am going to embed a aiohttp server in a PyQt application, but when I run the code below , the Qt window couldn't show, I know it was caused by web.run_app(app) , I've tried to move it into a thread , but then I got RuntimeError: There is no current event loop in thread 'Dummy-1' , so what should I do ? I've found asyncqt which might help ,but I don't know how to use it to deal with a aiohttp server. from PyQt5.QtCore import * from PyQt5.QtGui import * from PyQt5.QtWidgets import * from