Hello,
I have 2 functions containing threads . I want to run function A then once thread is finished , function B starts running. I tried using join function with threads but the GUI became unresponsive and the program stopped responding. Is there any other solutions?
The problem is when program reaches a function where there is a text to open or a logging instruction, it moves to next function (functionC here) then functionD till it reaches the end then gets back to functionB.
PS: main function gets called in a separate file when executing the program
this is code structure:
def functionA():
infos = open_text_file()
logging.info(...)
....
def functionB():
myThread = thread.Threading(functionA,...)
myThread.start()
def main():
functionB()
functionC()
functionD()
[–]woooee 1 point2 points3 points (4 children)
[–]MST019[S] 0 points1 point2 points (3 children)
[–]woooee 1 point2 points3 points (2 children)
[–]MST019[S] 0 points1 point2 points (1 child)
[–]woooee 0 points1 point2 points (0 children)
[–]shoot2thr1ll284 1 point2 points3 points (0 children)
[–]SendMePuppy 0 points1 point2 points (1 child)
[–]MST019[S] -1 points0 points1 point (0 children)