Firstly, I create an Tkinter window that contains a button and that button triggers the function that creates new subprocess but after creating new subprocess my first window doesn't respond. I am using python 3.7
(It happens even if I launch new subprocess that contains just a window and nothing else)
Here is my code
from tkinter import *
import pickle
import sys
import subprocess
def bom(exitX, exitY, startY, startX, entries1):
    theproc = subprocess.Popen([sys.executable, "Learner.py"], stdin=subprocess.PIPE)
    theproc.communicate()
masterq = Tk()
##..some gui code..##
Button(masterq, text='SAVE GRID - START AND END POINTS',
       command=lambda: bom(e1.get(), e2.get(), e3.get(), e4.get(), entries)).grid(
    row=4,
    column=0,
    sticky=W,
    pady=4)
masterq.mainloop()
