How do I run background threads in a PyQt5 GUI in Python?
#this is a background task that displays 'Ten seconds passed' in the PyQt5 main window every ten seconds
#this should be adapted for your perposes
def countTenSeconds():
    #Load PyQt5 GUI
    window = uic.loadUi(mainwindow.ui)
    #Do something
    window.print(Ten seconds passed )
    #restart task
    threading.Timer(10, countTenSeconds).start()

#Start background task
threading.Timer(10, countTenSeconds).start()
It actually worked, could you provide an alternative such as PySimpleGUI.

Please.