Silhouette freeze in multi-thread

I am adding a menu on Silhouette Startup. But it freezes on opening, because of the use of while loop in one of the options. I am threading for this loop, for the loop is still called in main thread, where Silhouette is running. Below is a code snippet example of function countdown called using thread while opening Silhouette:

import time
def countdown(n):
    while n > 0:
        print('T-minus', n)
        n -= 1
        time.sleep(5)
# Create and launch a thread
from threading import Thread
t = Thread(target = countdown, args =(10, ))
t.start()

The opening of Silhouette freezes along with Menu load, while waiting for the loop to end, even when I am using threading. Is there some other way to separate the Silhouette main thread with worker thread.

We haven’t tested Silhouette with Python threads.
But you can use Qt threads via the PySide2 API.