Home>

How to make a loop run every X seconds without using time.sleep (). The option does not suit metime.sllep ()because when it is executedtime.sllep ()the window with the program becomes inactive

run in stream

alex2021-02-25 19:37:23

@alex how to run it on a thread

QQSem2021-02-25 19:37:23

docs.potkhon.org /3 /librari /threading.html

alex2021-02-25 19:37:23

In general, the answer depends on the used GUI library. In tkinter, you can use the after method. Other libraries may have their own methods for implementing timers.

insolor2021-02-25 19:37:23

@insolor PySide 2

QQSem2021-02-25 19:37:23