TSequencer.InputDialog
Previous  Top  Next

InputDialog(strText)

Displays an input dialog box. The text strText is displayed as the input prompt. If the user pressed Cancel or does not provide any input a TSeqAbortError execption is raised. The input dialog is displayed as a modal dialog box, that means you have to acknowledge the dialog before you can interact with GSEOS. If you want to use a modeless dialog that lets you interact with the rest of the system use InputDialogModeless().
If you want your sequencer to continue running even if the user presses Cancel you have to handle the TSeqAbortError exception.


ParameterDescription     
strTextThe input dialog prompt text.     
 
Returns  
The text entered by the user or None if the user selected cancel.

Example
Display an input box asking for a HV level:

def fMySeq(oSeq):
  oSeq.InputDialog('Please set a new HV level in the range 1 .. 4!)
  oSeq.Wait([HK], fCheckHV)