Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Scripting_function



Panel
titleDescription

Opens up a popup input dialog box. This dialog box will show a prompt message, and allow the user to type in a string. When the user is done, they can press "OK" or "Cancel". If OK is pressed, this function will return with the value that they typed in. If Cancel is pressed, this function will return the value None.


Panel
titleClient Permission Restrictions

This scripting function has no Client Permission restrictions.


Panel
titleSyntax

system.gui.inputBox(message, defaultText)

  • Parameters

String message - The message to display for the input box. Will accept html formatting.

String defaultText - The default text to initialize the input box with.

  • Returns

String - The string value that was entered in the input box.

  • Scope

Client



Panel
titleCode Examples


Code Block
languagepy
titleCode Snippet
# This could go in the mouseClicked event of a label to allow the user to change the label's text.
 
txt = system.gui.inputBox("Enter text:", event.source.text)
if txt != None:
   event.source.text = txt