Despite i am using Thread class in my long-term function, my GUI is freezing in PyQt5 and i couldn\' t solve the problem. i am using seperate py files in this process.