def updater(event, progresstext):
    """Updater function to be called by threads."""
    while True:
        event.wait(0.5)
        if event.is_set():
            break
        progresstext.autoupdate()
    progresstext.clear()
