The DataInputApply event is called when the user press Apply in a DataInput
page Example:
def Handle_System_DataInputApply(Source):
#
# Source = VT_BSTR
#
# Source identifies name of DataInput page
#
if Source == 'Product selection':
if GetBoolValue('GlobalInput.CD340Active'):
p='CD340'
SetValue('ProductType.Value' , p)
elif GetBoolValue('GlobalInput.C314Active'):
p='C314'
SetValue('ProductType.Value' , p)
if GetBoolValue('System.CameraSimulation'):
try:
ExecuteCmd('Image','path=images\\'+str(p))
ExecuteCmd('GrabExecute','')
except:
print "No images available"
|