def initEyeGaze():
 import sys
 eyegaze_control = pEyeGaze._stEgControl()
 eyegaze_control.iNDataSetsInRingBuffer = 32
 eyegaze_control.bTrackingActive = False
 eyegaze_control.iScreenWidthPix = 1280
 eyegaze_control.iScreenHeightPix = 1024
 eyegaze_control.bEgCameraDisplayActive = False
 eyegaze_control.iEyeImagesScreenPos = 1
 eyegaze_control.iVisionSelect = 0
 eyegaze_control.iCommType = pEyeGaze.EG_COMM_TYPE_LOCAL
 result = pEyeGaze.EgInit(byref(eyegaze_control))
 if (result != 0):
  print 'Could not connect to EyeGaze. Error: ', result
  sys.exit(0)
 return eyegaze_control

def initEyeGaze ( ) : import sys eyegaze_control = pEyeGaze . _stEgControl ( ) eyegaze_control . iNDataSetsInRingBuffer = 32 eyegaze_control . bTrackingActive = False eyegaze_control . iScreenWidthPix = 1280 eyegaze_control . iScreenHeightPix = 1024 eyegaze_control . bEgCameraDisplayActive = False eyegaze_control . iEyeImagesScreenPos = 1 eyegaze_control . iVisionSelect = 0 eyegaze_control . iCommType = pEyeGaze . EG_COMM_TYPE_LOCAL result = pEyeGaze . EgInit ( byref ( eyegaze_control ) ) if ( result != 0 ) : print 'Could not connect to EyeGaze. Error: ' , result sys . exit ( 0 ) return eyegaze_control
function to create the _stegcontrol object and init the eyegaze system .