You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If this examples MainWindow class would have an additonal async def do_something() function (decorated with @asyncSlot) , what would be the proper place to call it?
This wouldn't work obviously:
[...]
main_window = MainWindow()
main_window.show()
main_window.do_something() # can't call here, as we're not inside an async function.
with event_loop:
event_loop.run_until_complete(app_close_event.wait())
I'm a beginner to Python as well as Asyncio and Qt, so I'm a bit helpless here. I don't know where event_loop.run_until_complete() (or event_loop.run_forever() fwiw) start executing. Hence I'm unable to inject my code to run prior.
Thanks!
The text was updated successfully, but these errors were encountered:
Hello,
I hope the issues facility can also be used to ask questions.
The Readme currently lists the following qasync usage example:
If this examples
MainWindow
class would have an additonalasync def do_something()
function (decorated with@asyncSlot
) , what would be the proper place to call it?This wouldn't work obviously:
I'm a beginner to Python as well as Asyncio and Qt, so I'm a bit helpless here. I don't know where
event_loop.run_until_complete()
(orevent_loop.run_forever()
fwiw) start executing. Hence I'm unable to inject my code to run prior.Thanks!
The text was updated successfully, but these errors were encountered: