Gseos.InputDialog
Previous  Top  Next

InputDialog(strText, [strTitle="GSEOS"], [bModeless=False])

Displays an input dialog box. The text strTitle is displayed in the title bar of the dialog box. The text strText is displayed as the input prompt. The dialog can be opened modeless or modal, if modal all user interface interaction with GSEOS is stopped until the dialog is confirmed, if modeless the GSEOS user interface remains responsive.

ParameterDescription     
strTextThe input dialog prompt text.     
strTitleOptional, The caption bar text. Default: GSEOS.      
bModelessTrue, if the dialog is to be shown as modeless and therefore allowing interaction with the main GSEOS application. The default is False, showing the dialog as modal. In either case, the InputDialog() function does not return until the dialog has completed.  
Returns
The text entered by the user or None if the user selected cancel.

Example
Display an input box asking for a HV level:

Gseos.InputDialog('Please enter the new HV level in [kV]', 'HV Level')