#๐ non-blocking guis?
16 messages ยท Page 1 of 1 (latest)
@iron prism
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
what do you mean by non-blocking?
why can't you just run the GUI in a separate thread and do the non-blocking stuff in the other thread?
Or end the command with & to run it in the background
huh?
im not sure i understand
like ahk has a tooltip feature
that i use for debugging information to the user
since the tooltip does not require any pre thread setup
it makes it ideal for debugging some stuff, like a very simple gui
i am currently using asyncio, and tried setting up tk with it, it does not work for what i want
and gives me errors
i will try again with threads this time
a couple months ago i wrote a gist for running an asyncio event loop in another thread while running tkinter in the main thead:
https://gist.github.com/thegamecracks/564bd55af973827f8a05b48f197d5c09
might look unfamilar having to use asyncio.run_coroutine_threadsafe() and callbacks, but thats the basis for communicating without blocking their event loops
This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.