#๐Ÿ”’ non-blocking guis?

16 messages ยท Page 1 of 1 (latest)

iron prism
#

is there any non-blocking guis? i am currently using tk/pyqt, but they are blocking, and in my case i need a gui that is not blocking
i do not want to use console window

iron sundialBOT
#

@iron prism

Python help channel opened

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.

viral dragon
#

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?

oak cipher
#

Or end the command with & to run it in the background

iron prism
#

im not sure i understand

oak cipher
#

Oh. You're using windows?

#

Surely there's an equivalent

iron prism
#

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

jaunty wing
#

might look unfamilar having to use asyncio.run_coroutine_threadsafe() and callbacks, but thats the basis for communicating without blocking their event loops

iron sundialBOT
#
Python help channel closed

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.