I'm making a python interface to run a program in C and I need to know if this C program ended successfully or not, however the only way I know to do that locks the interface while the C program is not finished. Does anyone know how I can do this without blocking the interface?
Below is the code snippet:
def runProg(self):
    """This funcion will run the simulation"""
    if self.openned.get() ==  1:
        self.pid = StringVar()
        a = open(self.nameFile.get(),"w")
        self.writeFile()
        self.process = subprocess.Popen([self.cmdSys.get()+self.dV.get()+
                                         self.extension.get(),self.nameFile.get()])
        self.pid = self.process.pid
        #isso trava a interface para processos muito grandes até que o mesmo tenha    terminado
        if self.process.wait() == 0:
            tkMessageBox.showinfo("","Your simulation was completed sucessfully.")
 
     
     
     
    