Open MartyMcFlyInTheSky opened 2 weeks ago
As mentioned in some issues before, but yeah hard to find, setting flush=True
in the python print statement will probably resolve your issue.
I do have the sys.stdout.flush()
in my python script. That should not be the issue..
Checklist before submitting an issue
Description of the bug
Have a look at the excerpt from my yuck configuration below.
I set out to create a simple wifi connection menu where I list all the wifi networks and upon click on the button "Connect" it will connect to the selected network. Everything works fine except that I also wanted to integrate something like a spinner icon. For that I set up a polling variable that executes a certain python script in intervals of 100ms, whereas the python script will
stdout
a progression of the spinner symbol in accordance to system time (so it should look reasonably smooth).However at the same time the yuck script will make another call to a longer running script (
nw_connect.py
in the below excerpt). It seems to me that as soon as this script is running, the spinner will just halt and be stuck on the last symbol. However I need both scripts to run in parallel. Is there a way to coerce eww in detaching those scripts on multiple threads?tl;dr: can't poll variable and execute blocking script at the same time
Reproducing the issue
Expected behaviour
Poll variable update (
common/spin.py
) happens in 100ms intervals whilewin_networks/nw_connect.py
is executed.Additional context
No response