is there anyway to repeat a function every so often without using a while True: loop? im asking because in my GUI's they dont respond when proccessing large amounts of information. I want to display the information in real time without waiting for the while True loop to exit.
Thanks for the help

A solution is to start a thread which runs the loop like this

from threading import Thread
def my_function():
    # put something here
    pass

def my_loop():
    while True:
        my_function()

th = Thread(target= my_loop)
th.start()
do_something_else() # while the loop is running