You probably need a subprocess module .
Least:
import subprocess
retcode = subprocess.call(["/path/to/myCprogram", "/path/to/file.c"])
if retcode == 0:
print "success!"
This will start the program with arguments and then return a return code.
Please note that subprocess.call will be blocked until the program ends, so if it does not work quickly, the entire Tkinter GUI will stop redrawing until completion.
subprocess.Popen. , .
C HTML, :
proc = subprocess.Popen(["/path/to/myCprogram", "/path/to/file.c"],
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
output, err_output = proc.communicate()