I am desperately trying to get pystray working with an asyncio application and send click events back to the app. The callbacks have no event loop and fail. I discovered this other method so run the icon with uvicorn app launched. But the icon doesn't show up. I get the icon object returned. But no icon is showing.
icon.run_detached(self.on_setup)
The only way to get it working is to run this before uvicorn is launched. But they cannot communicate to eachother. The callback complains of not having an event loop running to message the app of icon clicks
I am desperately trying to get pystray working with an asyncio application and send click events back to the app. The callbacks have no event loop and fail. I discovered this other method so run the icon with uvicorn app launched. But the icon doesn't show up. I get the icon object returned. But no icon is showing.
The only way to get it working is to run this before uvicorn is launched. But they cannot communicate to eachother. The callback complains of not having an event loop running to message the app of icon clicks