Hello,
I want to run several program at the same time in a tkinter window, but each process that I launch reopen an other tkinter window. Here is a simplified code that give the same error :
I want to run several program at the same time in a tkinter window, but each process that I launch reopen an other tkinter window. Here is a simplified code that give the same error :
from multiprocessing import Process from tkinter import * def f1(): print(1) def f2(): print(2) def main(): p1 = Process(target=f1) p1.start() p2 = Process(target=f2) p2.start() p1.join() p2.join() window = Tk() if __name__ == '__main__': main() window.mainloop()How can I avoid this problem ?