def runCalibration(eyegaze_control):
 import subprocess, time
 result = pEyeGaze.EgExit(byref(eyegaze_control))
 eyegaze_control = None
 p = subprocess.Popen(('calibrate.exe', ''))
 while (p.poll() is None):
  time.sleep(0.05)
 return initEyeGaze()

def runCalibration ( eyegaze_control ) : import subprocess , time result = pEyeGaze . EgExit ( byref ( eyegaze_control ) ) eyegaze_control = None p = subprocess . Popen ( ( 'calibrate.exe' , '' ) ) while ( p . poll ( ) is None ) : time . sleep ( 0.05 ) return initEyeGaze ( )
function to run the external calibrate .