Nov-09-2023, 09:08 PM
(Nov-09-2023, 08:27 PM)deanhystad Wrote: A couple problems. When you import a module the first time, Python executes the module code. If you don't want to draw the map you must put that code inside a function or hide it behind if __name__ == '__main__' :. The bigger problem is it sounds like you are running tk in one process and mainloop in another. That will not work. You must create your windows and run mainloop in the same process.
from multiprocessing import Process def ana() : from mainMap import root_tk from mainarayĆ¼z import main p1 = Process(target=(root_tk, main)) p1.start() ana()like this?