from threading import Thread
from time import sleep
self.updateGUIThread = Thread(target=self.updateGUI)

def updateGUI(self):
    pass
Python & Tkinter -> About calling a long running function that freeze the program