-
-
Notifications
You must be signed in to change notification settings - Fork 709
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't use asyncio event loop in widgets #1046
Comments
Do you need stdout or stderr from the program? If not you could just use |
I need the stdout in this case, so I can't use Using |
I just stumbled upon this because I was getting the same error (but completely unrelated to qtile, I don't even know what that is).
|
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 30 days. |
This will enable widgets to do things using our event loop if they want. Closes qtile#1046 Signed-off-by: Tycho Andersen <[email protected]>
This will enable widgets to do things using our event loop if they want. Closes #1046 Signed-off-by: Tycho Andersen <[email protected]>
Just got fixed by @tych0 , sorry it took so long! |
This will enable widgets to do things using our event loop if they want. Closes qtile#1046 Signed-off-by: Tycho Andersen <[email protected]>
I am creating a widget that uses asyncio to run some external command (with
asyncio.create_subprocess_exec
). It doesn't work, and raises theRuntimeError("Cannot add child handler, the child watcher does not have a loop attached")
exception instead.If my understanding of the code is correct, calling
set_event_loop
afternew_event_loop
should fix this issue, but I'm not sure whether it will cause other problems.The text was updated successfully, but these errors were encountered: